Here they are:
- 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 statementsand much more.
- 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.
- 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.
- 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.
- CTRL + "k" + "c" and CTRL + "k" + "u": These two are for commenting selected text (the "c" options) and uncommenting selected text (the "u" option).
- ALT + ENTER: this little shortcut will open up the Properties window
- CTRL + "k" + "s": This one opens up the code snippets dialogue within the codeIf you want to create code snippets you should read my post about snippy the code snippetseditor.
- 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.
- 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.
- CTRL + ALT + "q": This one will open the Quick watch window while you debug
38 Responses to “10 Visual Studio Shortcuts You Must Know”
and
CTRL SHIFT -
Ctrl+J — Intellisense, list members
Ctrl+Shift+Space — Intellisense, list parameter info
CTX+D - Definition
CTX - same as CTRL+. above
ret” then Ctrl + Space gives you
rediculouslyLongName”
public string test2;
public string test3;
moves you to the beginning or end of a snippet, [], {}, etc.
>Anyone know how to do an entire block?
>For example highlight all 3 rows below and generate the methods >in one shot instead of select and generating each one?
>public string test1;
>public string test2;
>public string test3;
CTRL+M,O (to collapse to definitions)