Thursday, October 18, 2012

DotNet IDE Visual Studio Shortcut keys



1. Manage Visual Studio 
Ctrl+sSave current file
Ctrl+Shift+sSave all files
Ctrl+Shift+nCreate new project
Ctrl+oOpen file
Ctrl+Shift+oOpen project
Ctrl+Shift+aAdd item to project
EscClose menu or dialog
Ctrl+pPrint
Shift+Alt+EnterToggle full screen mode
Ctrl+f4Close current tab
Ctrl+f6/Ctrl+Shift+f6Go to next / go to previous window
Ctrl+Tab, thenArrow keysPress and hold Ctrl+Tab, then using arrow keysgives a small task manager with all open files and views
2. Bookmarks
For keystrokes with two keys such as Ctrl+k+k, keep holding the Ctrl key until releasing the last key.
Ctrl+k+kToogle bookmark
Ctrl+k+nGoto next bookmark
Ctrl+k+pGoto previous bookmark
Ctrl+Shift+k+nGoto next bookmark in folder
Ctrl+Shift+k+pGoto previous bookmark in folder
Ctrl+k+wPut focus on bookmark window
EscLeave bookmark window and focus on editor
Ctrl+k+hToggle code shortcut at current line*
Ctrl + K + LClear all bookmarks
*if somebody figures out additional shortut keys on how to use code shortcuts, please edit this page and add.

3. Undo, Redo, Copy, Paste
Ctrl+x, Ctrl+x, Ctrl+vCut, copy, paste
Ctrl+Shift+vPastes an item from the Clipboard ring
Ctrl+zUndo
Ctrl+yRedo (or Shift+Alt+Backspace, or Ctrl+Shift+Z)
4.Select Text
Shift+Arrow KeysExtend selection one character/one line
Ctrl+Shift+End/Ctrl+Shift+HomeExtend selection to end / to beginning of document
Ctrl+Shift+]Extend selection to nexst brace
Shift+End/Shift+HomeExtend selection to end / to beginning of line
Shift+Page Down/Shift+Page UpExtends selection down one page / up one page
Ctrl+wSelect current word
EscCancel Selection
Ctrl+Shift+Page Down/Page UpMoves cursor and extend selection to the last line / first line in view.
Ctrl+Shift+Arrow right/arrow leftExtend selection one word to the right / one word to the left
Ctrl+aSelect All
5. Find, Replace, and Goto
Ctrl+fFind and replace dialog box
f3/Shift+f3Find next / find previous
Ctrl+hDisplay Replace options on the quick tab
Shift+f12Find all references for selected symbol
Ctrl+Shift+fFind in files
Alt+F3, sStop current find in files operation
Ctrl+F3/Ctrl+Shift+f3Find next / find previous in selected text
Alt+F12Find symbol
Ctrl+dPut cursor in find/command box of the toolbar. Usectrl+/ in Visual C#
Ctrl+i/Ctrl+Shift+iIncremental search / reverse incremental search
Shift+Alt+f12Quick find symbol
Ctrl+,Display Navigate-To dialog box
Ctrl+gGoto line number
Ctrl+]Go to matching brace in source file
6. 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+Shift+sOpen Server explorer window
Ctrl+Shift+lOpen Solution explorer window
Shift+EscClose Find & Replace Window
7. Build and Debug
f7Build 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

No comments:

Post a Comment