Visual Studio keyboard shortcuts

Learning these shortcuts can save you a lot of time in the long run. Are you searching the Visual Studio Keyboard Shortcuts?

If you’re interested in Visual Studio Keyboard Shortcuts this is the right place for you. There are many keyboard shortcuts that can save you time and energy when you are working on 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, 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

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
Ctrl+\+TShow Task List (including code shortcuts)
  Tekla Structures keyboard shortcuts

*if somebody figures out additional shortut keys on how to use code shortcuts, please edit this page and add.

 

Code Editor

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+F3sStop 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. Use ctrl+/ 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
Shift+Ctrl+Arrow downJump to next occurrence of highlighted symbol
Shift+Ctrl+Arrow upJump to previous occurrence of highlighted symbol
Ctrl+x, Ctrl+c, 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)
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
  Vuescan keyboard shortcuts

 

Coding

Ctrl+M+MCollapse / un-collapse current preset area (e.g. method)
Ctrl+M+HCollpase / hide current selection
Ctrl+M+OCollapse declaration bodies
Ctrl+M+ACollapse all
Ctrl+M+XUncollapse all
Ctrl+mctrl+TCollapse Html tag
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 to 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.
Ctrl+SpaceAutocomplete word from completion list (or alt+right arrow)
Ctrl+Shift+SpaceShow parameter info
Ctrl+F12Display symbol declaration
F12Display symbol definition
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
  Unreal Engine keyboard shortcuts

 

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

 

For HTML Pages

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

 

Code Snippets (Visual C# Scheme)

IIf block
E+LElse block
D+ODo While Loop block
F+O+RFor Loop block
W+HWhile loop block
LLock block
B+RBreak
S+HShort
T+RTrue
FFalse
F+LFloat
B+YByte
B+OBool
EEnum myEnum
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

Using This Visual Studio Keyboard Shortcuts can help you be more productive.Keyboard Shortcuts

So next time you’re sitting at your computer, take a few minutes to learn some of these essential keyboard shortcuts – your future self will thank you!

Was this article helpful?
YesNo

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.