Visual Studio with C# key bindings
To answer the specific question, in C# you are likely to be using the C# keyboard mapping scheme, which will use these hotkeys by default:
Ctrl+E, Ctrl+D to format the entire document.
Ctrl+E, Ctrl+F to format the selection.
You can change these in menu Tools → Options → Environment → Keyboard (either by selecting a different "keyboard mapping scheme", or binding individual keys to the commands "Edit.FormatDocument" and "Edit.FormatSelection").
If you have not chosen to use the C# keyboard mapping scheme, then you may find the key shortcuts are different. For example, if you are not using the C# bindings, the keys are likely to be:
Ctrl + K + D (Entire document)
Ctrl + K + F (Selection only)
To find out which key bindings apply in your copy of Visual Studio, look in menu Edit → Advanced menu - the keys are displayed to the right of the menu items, so it's easy to discover what they are on your system.
(Please do not edit this answer to change the key bindings above to what your system has!)
Richard Banks posted about a registry key for just such a tweak.
Visual Studio 2012 (Full)
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\General
DWORD: SuppressUppercaseConversion
Value: 1
In PowerShell, you can run this to set that registry key and the uppercase goes away.
Set-ItemProperty -Path HKCU:\Software\Microsoft\VisualStudio\11.0\General -Name SuppressUppercaseConversion -Type DWord -Value 1
Visual Studio Express 2012
The above registry key is not the one that will affect Visual Studio Express 2012 RC. A comment by FormatC showed up on Banks post about the key for Express. You can find that key mentioned in Mike Gleason's answer or run the following PowerShell command to set it.
Set-ItemProperty -Path HKCU:\Software\Microsoft\VSWinExpress\11.0\General -Name SuppressUppercaseConversion -Type DWord -Value 1
Visual Studio Express 2012 for Web
Set-ItemProperty -Path HKCU:\Software\Microsoft\VWDExpress\11.0\General -Name SuppressUppercaseConversion -Type DWord -Value 1
Visual Studio 2013
Replace 11.0
with 12.0
in the registry keys above.
Visual Studio 2015 Developer Preview
Replace 11.0
with 14.0
in the registry keys above.
Best Answer
There are two workable options I now use (in order):
As of Visual Studio 2013 Release 4
Account Settings
option on the account drop-down menu (top right, usually showing your name)It appears VS simply does not like to login to a different account while you are already logged in. Just make it happy first :)
Fallback option: You need to run
devenv /resetuserdata
at the command prompt.To run the “switch user operation”:
devenv /resetuserdata
and wait for it to complete,.This process clears the same registry keys (and a few more) suggested by other solutions.