Posts

Showing posts from December, 2012

Format code shortcut for VS2010

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. Ctrl + K + D (Entire document) Ctrl + K + F (Selection only) resharper - Ctrl + Alt + F VS 2010 - Ctrl + K , Ctrl + D You can change these in 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 Visu