- CTRL + k + f , CRTL + k + d: Format the code in the window into indented. CRTL + k + d format whole document while CTRL + k + f format only selected text. For VS 2008, it is CTRL+ E+ F and CTRL +E+D.
- SHIFT + Del: This one will cut the entire row from the document and paste it to the clipboard. Even no need to select the row, just put the marker there and click SHIFT + Del.
- CTRL + k + c , CTRL + k + u: These two are for commenting selected text (the "c" options) and un-commenting selected text (the "u" option).
- CTRL - , CTRL SHIFT: Moves the editing cursor to the last/next position. If you edit something somewhere else and you wanna go back to that last method you were editing. CTRL - will save you so much time!
- Alt + Enter: Is also a general Windows shortcut for accessing properties of files, drives, shortcuts, etc. It is a nice keystroke to keep in mind.
- SHIFT + ALT + ENTER (Full Screen mode): It helps you to get rid of all the properties, toolbar and other [obstructives] windows that don’t let you see the code. Hit it a second time and the windows are back.
- CTRL + M + M: Expanding / Collapsing code blocks, e.g. regions/methods.
- CTRL+J: Intellisense
- CTRL + SPACE: While coding lets VS finish for you or open intellisense
- CTRL + TAB: Flips forward and backwards, between the last two accessed files.
- CTRL + SHIFT + H: Does very smart job for find and replace. Further, first do Ctrl+F for find and then just press F3 for next match. Easy!
And finally,
·CTRL + SHIFT + B: Build solution