0% found this document useful (0 votes)
48 views2 pages

Shortcuts

These shortcuts provide formatting, commenting, navigation, and debugging functionality in Visual Studio 2008. CTRL+k+f and CTRL+k+d format code by indenting selected or all text. SHIFT+Del cuts the entire current row without selection. CTRL+k+c and CTRL+k+u comment and uncomment selected text. F12 navigates to definitions. F9 sets and removes breakpoints. CTRL+ALT+q opens the quick watch window for debugging.

Uploaded by

Abhinav G Singh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views2 pages

Shortcuts

These shortcuts provide formatting, commenting, navigation, and debugging functionality in Visual Studio 2008. CTRL+k+f and CTRL+k+d format code by indenting selected or all text. SHIFT+Del cuts the entire current row without selection. CTRL+k+c and CTRL+k+u comment and uncomment selected text. F12 navigates to definitions. F9 sets and removes breakpoints. CTRL+ALT+q opens the quick watch window for debugging.

Uploaded by

Abhinav G Singh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

VS2008 Shortcuts

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 code. If you want
to create code snippets you should read my post about snippy the code snippets editor.

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.

CTRL + “-“ and CTRL + SHIFT + “-“ :

Moves the editing cursor to the last/next position.

This is great if you decide to edit something somewhere else and you want to go back to
that last method you were editing. CTRL + “-“will save you so much time!

Shift + Alt + Enter:

Full Screen Mode.

CTRL+M+M:

Expanding / Collapsing code blocks, e.g. regions/methods.

Ctrl+Shift+B:

Build solution.

Ctrl+J:

Intellisense, list members

Ctrl+Shift+Space:

Intellisense, list parameter info

You might also like