Wednesday, August 6, 2014

Shortcut keys for Visual studio 2008,2010,2012,2013

Some of useful Coding Shortcut keys  while developing in Visual Studio..


Collapse Items

Ctrl+M+MCollapse / un-collapse current preset area (e.g. method)
Ctrl+M+H Collpase / hide current selection
Ctrl+M+OCollapse declaration bodies
Ctrl+M+ACollapse all
Ctrl+M+XUncollapse all
Ctrl+m, ctrl+TCollapse Html tag


Edit Code

Ctrl+LDelete current line or selection of lines to and add to clipboard
Ctrl+Shift+LDelete current line or selection of lines
Ctrl+DeleteDelete word to right of cursor
Ctrl+BackspaceDelete word to left of cursor
Ctrl+EnterEnter blank line above cursor
Ctrl+Shift+EnterEnter blank line below cursor
Ctrl+Shift+UMake uppercase
Ctrl+UMake lowercase (reverse upercase)
Ctrl+K+CComment selected text
Ctrl+K+UUncomment selected text
Ctrl+K+\Remove white space and tabs in selection or around current cursor position
Ctrl+K+DFormat document tostyle="width: 10px;" code formatting settings
Ctrl+K+FFormat selection to code formatting settings
Ctrl+Shift+SpaceDisplay parameter required for selected method
Ctrl+Shift+8Visualize whitespace (or press Ctrl+r, then Ctrl+w)
Ctrl+K+DFormat document to code formatting settings
Ctrl+K+FFormat selection to code formatting settings
Ctrl+Shift+TTranspose word to right of cursor; makes b=a out of a=b if cursor was in front of a
Ctrl+TTranspose character left and right of cursor; cursor between ab would make ba
Shift+Alt+TTranspose line: Move line below cursor up and current line down.



IntelliSense and Code Helper

Ctrl+SpaceAutocomplete word from completion list (or alt+right arrow)
Ctrl+Shift+SpaceShow parameter info
Ctrl+F12Display symbol definition
F12Display symbol declaration
Ctrl+JOpen IntelliSense completion list


Build and Debug

F6Build solution (or Ctrl+shift+b)
Ctrl+Alt+F7Rebuild solution
Ctrl+BreakCancel build process
Ctrl+\+EShow error list
F9Toggle breakpoint
Ctrl+BInsert new function breakpoint
F5Start debugging
F11Debug / step into
F10Debug / step over
Shift+F11Debug / step out
Ctrl+F10Debug / run to cursor
Ctrl+Alt+QShow Quickwatch window
Ctrl+Shift+F10Set current statement to be the next executed
Alt+* (on numeric keyboard)Show nexst statement
Ctrl+Alt+EShow Exception dialog box
Ctrl+F11Toggle between disassembly and user code view
Shift+F5Stop Debugging
Ctrl+F5Bypass debugger
Ctrl+Alt+PShow attach to process window
Ctrl+Alt+breakBreak all executing threads


Tool Windows

Ctrl+/Put cursor in the find/command box in toolbar
Ctrl+K+BOpen code snippet manager window
Alt+F11Open macro IDE window
Ctrl+K+WOpen bookmark window
Ctrl+Alt+KOpen call hierarchy window
Ctrl+Shift+COpen class view window
Ctrl+Alt+AOpen Command window
Ctrl+Shift+OOpen Output window
Ctrl+Shift+EOpen Resource view window
Ctrl+Alt+SOpen Server explorer window
Ctrl+Shift+LOpen Solution explorer window
Shift+EscClose Find & Replace Window

No comments:

Post a Comment