1.
CTRL + “.”: This is actually a shortcut for a shortcut. it is the same as CTRL + SHIFT + F10 which opens the smart tag window and allows you to add Using statementsAdd Using Statement
Or implement interfaces Implement Interface
and much more.
2.
ALT + CTRL + “e”: This one will open the Exceptions window, which allows you to tell Visual Studio to halt at specific exceptions, halt on all exceptions or selecet some exceptions to ignore.
Exception Popup Windows
3.
CTRL + “k” + “f” and CRTL + “k” + “d”: these two will format the code in the window to be nicely indented. using “d” will format all the document while using “f” will format only selected text. The formatting is for all types of documents, HTML, Xaml, XML, C#… This one is my favorite.
4.
SHIFT + Del: This one will cut the entire row from the document and past it to the clipboard. No need to select the row, just put the marker there and click SHIFT + Del and it is gone.
5.
CTRL + “k” + “c” and CTRL + “k” + “u”: These two are for commenting selected text (the “c” options) and uncommenting selected text (the “u” option).
6.
ALT + ENTER: this little shortcut will open up the Properties windowProperties Window
7.
CTRL + “k” + “s”: This one opens up the code snippets dialogue within the code
Open Snippets Dialogue
If you want to create code snippets you should read my post about snippy the code snippets editor.
8.
F12: I think you all know this but still F12 is the shortcut for the “Go to definition” command which will take you to the definition of the object your marker is currently on.
9.
F9: Another one i think you all know, clicking on F9 will add a breakpoint to the code line your marker is currently at. Clicking F9 again will remove this breakpoint from that line.
10.
CTRL + ALT + “q”: This one will open the Quick watch window while you debugOpen Quick Watch Window