File Commands
CTRL + SHIFT + N
Displays the New Project dialog box.
CTRL + SHIFT + O
Displays the Open Project dialog box, where existing projects can be added to the solution.
SHIFT + ALT + C
Displays the Add New Item dialog box and selects Class template as default.
SHIFT + ALT + A
Displays the Add Existing Item dialog box, where existing files can be added to the current project.
CTRL + SHIFT + A
Displays the Add New Item dialog box, where a new file can be added to the current project.
Editing
CTRL + M , CTRL + H
Collapses current selection to an outlining region.
CTRL + M , L
Toggles all previously collapsed outlining regions between collapsed and expanded states.
CTRL + M , M
Toggles the currently selected collapsed region between the collapsed and expanded state.
CTRL + M , P
Removes all outlining information from the whole document.
CTRL + K , C or CTRL + E , C
Inserts // at the beginning of the current line or every line of the current selection.
Edit.UncommentSelection CTRL + K, U or CTRL + E, U Removes the // at the beginning of the current line or every line of the current selection.
CTRL + K, D or CTRL + E, D
Formats the current document according to the indentation and code formatting settings specified on the Formatting pane under : Tools | Options | Text Editor | C#.
CTRL + K, F or CTRL + E, F
Formats the current selection according to the indentation and code formatting settings specified on the Formatting pane under Tools | Options | Text Editor | C#.
CTRL + K, X
Displays the Code Snippet Picker.The selected code snippet will be inserted at the caret position.
Edit.SurroundWith:
CTRL + K, S
Displays the Code Snippet Picker. The selected code snippet will bewrapped around the selected text.
TAB
Inserts the expanded code snippet from the shortcut name.
CTRL + SHIFT + V
Pastes text from the Clipboard ring to the caret location in the file. Subsequent use of the shortcut key iterates through the items in the Clipboard ring.
CTRL + H
Displays the replace options in the Quick Replace tab of the Find and Replace dialog box.
CTRL + SHIFT + H
Displays the replace options on the Replace in Files tab of the Find and Replace dialog box.
Window Commands :
CTRL + W, C
Displays the Class View window.
CTRL + W, D
Displays the Code Definition window.
CTRL + W, E
Displays the Error List window.
CTRL + W, J
Displays the Object Browser.
CTRL + W, O
Displays the Output window, where status messages can be viewed at run time.
CTRL + W, P
Displays the Properties window, which lists the design-time properties and events for the currently selected item.
CTRL + W, S
Displays Solution Explorer, which lists the projects and files in the current solution.
CTRL + W, T
Displays the Task List window, which displays custom tasks, comments, shortcuts, warnings, and error messages.
CTRL + W, X
Displays the Toolbox, which contains controls that can be included or used with your code.
CTRL + W, L
Displays Server Explorer, which lets you view and manipulate database servers, event logs, message queues, Web services, and other operating system services.
SHIFT + ESC
Closes the current tool window.
SHIFT + ALT + D
Displays the Data Sources window.
CTRL + F4
Closes the current tab
Debugging Command:
CTRL+D, A
Displays the Autos window, which displays variables used in the current line of code and the preceding line of code.
CTRL+D, C
Displays the Call Stack window, which displays a list of all active methods or stack frames for the current thread of execution.
CTRL+D, I
Displays the Immediate window, where expressions can be evaluated.
CTRL+D, L
Displays the Locals window, which displays the local variables and their values for each method in the current stack frame.
CTRL+D, Q
Displays the QuickWatch dialog box that has the current value of the selected expression.
F5
Launches the application under the debugger based on the settings from the startup project. When in Break mode, invoking this command will run the application until the next breakpoint.
CTRL+F5
Launches the application without invoking the debugger.
F11
Executes code one statement at a time, following execution into method calls.
SHIFT+ALT+F11
Prompts to select which sub expression to step into, regardless of the tools options setting for skipping properties and operators.
SHIFT+F11
Executes the remaining lines of a method in which the current execution point is located.
F10
Executes the next line of code, but does not follow execution through any method calls.
SHIFT+F5
Stops running the current application under the debugger.
F9
Sets or removes a breakpoint at the current line.
CTRL+D, W
Displays the Watch window, which displays the values of selected variables or watch expressions.
CTRL+F9
Toggles the breakpoint between disabled and enabled.
CTRL+R, A
Runs all of the unit tests in the solution.
Build Commands:
F6 or CTRL+SHIFT+B
Builds all the projects in the solution.
SHIFT+F6
Builds the selected project and its dependencies.