Shortcuts Visual Studio for Windows

75 shortcuts2,424 views
Open Trainer

Manage Visual Studio

WindowsAction
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, then Arrow keysPress and hold Ctrl+Tab, then using arrow keys gives a small task manager with all open files and views
Ctrl-[/ Ctrl+SFind current document in Solution Explorer
Ctrl+1Diagram
Ctrl+2Criteria
Ctrl+3SQL
Ctrl+4Results
F2/Ctrl+R/RRename

Bookmarks

WindowsAction
For keystrokes with two keys such as Ctrl+k+k, keep holding the Ctrl key until releasing the last key.Ctrl+K+K
Toogle bookmarkCtrl+K+N
Goto next bookmarkCtrl+K+P
Goto previous bookmarkCtrl+Shift+K+N
Goto next bookmark in folderCtrl+Shift+K+P
Goto previous bookmark in folderCtrl+K+W
Put focus on bookmark windowEsc
Leave bookmark window and focus on editorCtrl+K+H
Toggle code shortcut at current line*Ctrl+K+L
Clear all bookmarksCtrl+\+T
Show Task List (including code shortcuts)*if somebody figures out additional shortut keys on how to use code shortcuts, please edit this page and add.

Common

WindowsAction
TA new public class block
C+WConsole.WriteLine
M+BMessageBox.show
C+RCrossAppDomainDelegate
A+BAccessViolationException
E+XException class
S+V+MStatic Void Main block
P+UParallel
P+RPublic Int Property
SStackalloc

Build and Debug

WindowsAction
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

WindowsAction
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

For HTML Pages

WindowsAction
F7Toggle between Design and Code behind pages
Shift+F7Toggle between Design and HTML Source
Ctrl+Page Down / Page UpCycle between design, split and source
Ctrl+Shift+F9Delete all breakpoints