Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's WebLog


My adventures embracing open source on CodePlex and at Microsoft

News

Did you know... There's a keyboard shortcut default to upper and lower case a word in the editor? - #024

Make Uppercase and Make Lowercase menu items 

  • Press Ctrl+Shift+U to make the current character or selected characters uppercase
  • Press Ctrl+U to make the current character or selected characters lowercase

I got to be honest here and say I had to ask around when these commands would be useful.  One scenario (thanks bill!) is where the caps_lock key is bound to be a control key.  For example, you type a word, then ctrl+shift+left arrow to select, then do Ctrl+Shift+U to upper case (instead of having to hold the shift key down to type the entire word).  Maybe intellisense has made me lazy.  =)

Technorati tags: ,
Posted: Tuesday, August 28, 2007 3:00 AM by saraford

Comments

Jason Haley said:

# August 28, 2007 10:08 AM

Andrew Wilkinson said:

I can see this possibly being useful for the times when IntelliSense picks the wrong capitalisation. For example I often start by specifying a property,

public string Something

Then I type the getter, but before adding the backing field (which is named the same but with a lowercase start) - eg

get {return something;}

Since the field doesn't exist at that point, IntelliSense will try to capitalise it. The Ctrl-U shortcut would allow you to quickly correct the error.

[Alternatively! - press escape to cancel IntelliSense, use anonymous properties (C# 3.0), use the 'prop' snippet, etc....]

# August 28, 2007 2:56 PM

GregM said:

I use the lowercase version a lot more than the uppercase version, but I do use both of them fairly regularly.  I don't have a good use case for you for this one, sorry.

# August 28, 2007 8:48 PM

Bruce McGee said:

Relief from those inconvenient CapsLock key moments:

http://ihatethecapslockkey.com/

# August 30, 2007 2:41 PM

Omer van Kloeten said:

As a user, I would assume that the uppercase command would be Ctrl+U and the lowercase command would include the shift key, since it's the word 'uppercase' that starts with U.

# September 25, 2007 5:05 PM

Visual Studio 2008 ワンポイント said:

現在の文字または選択した文字列を大文字にするには、 Ctrl + Shift + U キーを押します 現在の文字または選択した文字列を小文字にするには、 Ctrl + U キーを押します 正直なところ、私はこの

# July 13, 2008 11:43 PM

Секреты Visual Studio said:

Нажмите Ctrl+Shift+U , чтобы заменить текущий строчный символ (или выделенный блок символов) на заглавный

# August 18, 2008 2:14 AM
New Comments to this post are disabled
Page view tracker