Thursday, March 25, 2010

Visual studio 2008 shortcuts

Visual studio 2008 shortcuts

CTRL + ".": same as CTRL + SHIFT + F10 opens the smart tag window and allows you to add Using statements Or implement interfaces

ALT + CTRL + "e": open the Exceptions window

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: cut the entire row from the document and past it to the clipboard.

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": opens up the code snippets dialogue within the code

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: 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

Ctrl+K, Ctrl+F - Format selected block of code

Ctrl+Shift+B -Build solution


References

http://www.dev102.com/2008/04/17/10-visual-studio-shortcuts-you-must-know/

http://www.85turns.com/2008/07/03/favorite-visual-studio-2008-keyboard-shortcuts-2/

No comments: