140 Visual Studio Keyboard Shortcuts

Visual Studio shortcuts help you navigate the app interface effortlessly. Within a few years of its existence, it has become one of the most popular text editors. It supports nearly every programming language.

The list of Visual Studio shortcuts given below is fascinating and reduces the need to use the mouse repeatedly. Download the Visual Studio Shortcuts PDF.

Most used Visual Studio Shortcuts

ActionVisual Studio shortcuts
Create new projectCtrl + Shift + N
Open fileCtrl + O
Open projectCtrl + Shift + O
Save current fileCtrl + S
CopyCtrl + C
PasteCtrl + V
Paste an item from the ClipboardCtrl + Shift + V
CutCtrl + X
RedoCtrl + Shift + Z
UndoCtrl + Z
Save all filesCtrl + Shift + S
Add item to the projectCtrl + Shift + A
Close menu or dialogueEsc
PrintCtrl + P
Full-screen modeShift + Alt + Enter
Close current tabCtrl + F4
Go to the next windowCtrl + F6
Go to the previous windowCtrl + Shift + F6
DiagramCtrl + 1
CriteriaCtrl + 2
SQLCtrl + 3
RenameF2
ResultsCtrl + 4

Code Editor Shortcuts

ActionVisual Studio Shortcuts
Find and Replace the dialogue boxCtrl + F
Find nextF3
Find PreviousShift + F3
Display Replace optionsCtrl + H
Find all references for the selected symbolShift + F12
Find in filesCtrl + Shift + F
Find next in the selected textCtrl + F3
Find previous in the selected textCtrl + Shift + F3
Find SymbolAlt + F12
Put the cursor in the find or command boxCtrl + D
Incremental searchCtrl + I
Reverse incremental searchCtrl + Shift + I
Quick find symbolShift + Alt + F12
Display NavigateCtrl + ,
Go to line numberCtrl + G
Select AllCtrl + A
Go to the matching brace in the source fileCtrl + ]
Jump to the next occurrence of the highlighted symbolShift + Ctrl + Down Arrow key
Jump to the previous occurrence of the highlighted symbolShift + Ctrl + Up Arrow key
Extend selection to the end of the documentCtrl + Shift + End
Extend selection to the beginning of the documentCtrl + Shift + Home
Extend selection to the next braceCtrl + Shift + ]
Extend selection to end of lineShift + End
Extend selection to the beginning of a lineShift + Home
Extends selection down one pageShift + Page Down key
Extends selection up one pageShift + Page Up key
Select current wordCtrl + W
Extend selection to the last line in viewCtrl + Shift + Page Down key
Extend selection to the first line in viewCtrl + Shift + Page Up key
Extend the selection of one word to the rightCtrl + Shift + Right Arrow key
Extend the selection of one word to the leftCtrl + Shift + Left Arrow key

Coding Shortcuts

ActionVisual Studio Shortcut Keys
Collapse or un-collapse current preset areaCtrl + M + M
Collapse or hide current selectionCtrl + M + H
Collapse declaration bodiesCtrl + M + O
Collapse allCtrl + M + A
Uncollapse allCtrl + M + X
Collapse HTML tagCtrl + M
Delete current lineCtrl + L
Delete the word to the right of the cursorCtrl + Delete
Delete the word to the left of the cursorCtrl + Backspace
Enter a blank line above the cursorCtrl + Enter
Enter a blank line below the cursorCtrl + Shift + Enter
Make uppercaseCtrl + Shift + U
Make lowercaseCtrl + U
Comment selected textCtrl + K + C
Uncomment selected textCtrl + K + U
Remove white space and tabs in the selectionCtrl + K + \
Format document to code formatting settingsCtrl + K + D
Format selection to code formatting settingsCtrl + K + F
Display parameter required for the selected methodCtrl + Shift + Spacebar
Visualize whitespaceCtrl + Shift + 8
Autocomplete words from the completion listCtrl + Spacebar
Show parameter infoCtrl + Shift + Spacebar
Display symbol declarationCtrl + F12
Display symbol definitionF12
Open the IntelliSense completion listCtrl + J

Bookmarks Shortcuts

ActionVisual Studio Shortcut Keys
Toggle bookmarkCtrl + K + K
Go to the next bookmarkCtrl + K + N
Go to the previous bookmarkCtrl + K + P
Go to the next bookmark in the folderCtrl + Shift + K + N
Go to the previous bookmark in the folderCtrl + Shift + K + P
Put the focus on the bookmark windowCtrl + K + W
Leave the bookmark window and focus on the editorEsc
Toggle the code shortcut at the current lineCtrl + K + H
Clear all bookmarksCtrl + K + L

Code Snippets Shortcuts

ActionVisual Studio Shortcuts
If blockI
Else blockE + L
Do While Loop blockD + O
For Loop blockF + O + R
While loop blockW + H
Lock blockL
BreakB + R
Short Data typesS + H
True Data typesT + R
False Data typesF
Float Data typesF + L
Byte Data typesB + Y
Bool Data typesB + O
Enum myEnum Data typesE
A new public class blockT
Console.WriteLineC + W
MessageBox.showM + B
CrossAppDomainDelegateC + R
AccessViolationExceptionA + B
Exception classE + X
The static Void Main blockS + V + M
ParallelP + U
Public Int PropertyP + R
StackallocS

Build and Debug Shortcuts

ActionVisual Studio Shortcuts
Build solutionF6
Rebuild solutionCtrl + Alt + F7
Show error listCtrl + \ + E
Toggle breakpointF9
Insert new function breakpointCtrl + B
Start debuggingF5
Debug – step intoF11
Debug – step overF10
Debug – step outShift + F11
Debug – run to cursorCtrl + F10
Show Quickwatch windowCtrl + Alt + Q
Set the current statement to be the next executedCtrl + Shift + F10
Show next statementAlt + *
Show Exception dialogue boxCtrl + Alt + E
Toggle between disassembly and user code viewCtrl + F11
Stop DebuggingShift + F5
Bypass debuggerCtrl + F5
Show attached to process windowCtrl + Alt + P

Tool windows Shortcuts

ActionVisual Studio Shortcuts
Open the code snippet manager windowCtrl + K + B
Open macro IDE windowAlt + F11
Open bookmark windowCtrl + K + W
Open call hierarchy windowCtrl + Alt + K
Open class view windowCtrl + Shift + C
Open Command windowCtrl + Alt + A
Open Output windowCtrl + Shift + O
Open the Resource view windowCtrl + Shift + E
Open the Server Explorer windowCtrl + Alt + S
Open the Solution Explorer windowCtrl + Shift + L
Close Find & Replace WindowShift + Esc

Visual Studio shortcuts are helpful for writers and anyone who manipulates text files. This Visual Studio shortcut list will help you become a Visual Studio Code power user.

READ NEXT:

Back to top button