Blocks and structure
1 shortcut
| Action |
Windows |
|
Collapse or expand the current block Text editor
|
Ctrl + M then Ctrl + M
|
Clipboard
1 shortcut
| Action |
Windows |
|
Paste from the clipboard Anywhere
|
Ctrl + V
|
Code editing
4 shortcuts
| Action |
Windows |
|
Run code analysis on the solution Build
|
Alt + F11
|
|
Pause all running code Debugging
|
Ctrl + Alt + Break
|
|
Collapse the code to its definitions Text editor
|
Ctrl + M then Ctrl + O
|
|
Insert a code snippet Text editor
|
Ctrl + K then Ctrl + X
|
Comments and review
3 shortcuts
| Action |
Windows |
|
Comment out the selection Text editor
|
Ctrl + K then Ctrl + C
|
|
Toggle line comments Text editor
|
Ctrl + /
|
|
Uncomment the selection Text editor
|
Ctrl + K then Ctrl + U
|
Editing
24 shortcuts
| Action |
Windows |
|
Build the whole solution Build
|
Ctrl + Shift + B
|
|
Cancel a running build Build
|
Ctrl + Break
|
|
Compile the current file Build
|
Ctrl + F7
|
|
Set a breakpoint on a named function Debugging
|
Ctrl + B
|
|
Remove every breakpoint Debugging
|
Ctrl + Shift + F9
|
|
Run until the cursor line Debugging
|
Ctrl + F10
|
|
Step out of the current function Debugging
|
Shift + F11
|
|
Stop debugging Debugging
|
Shift + F5
|
|
Set or clear a breakpoint Debugging
|
F9
|
|
Complete the current word Text editor
|
Ctrl + Space
|
|
Format the whole document Text editor
|
Ctrl + K then Ctrl + D
|
|
Cut the whole line Text editor
|
Ctrl + L
|
|
Show parameter information Text editor
|
Ctrl + Shift + Space
|
|
Peek at a definition inline Text editor
|
Alt + F12
|
|
Redo the last undone change Anywhere
|
Ctrl + Y
|
|
Remove and sort using directives Text editor
|
Ctrl + R then Ctrl + G
|
|
Collapse or expand all outlining Text editor
|
Ctrl + M then Ctrl + L
|
|
Undo the last change Anywhere
|
Ctrl + Z
|
|
Create a new file Anywhere
|
Ctrl + N
|
|
Create a new project Anywhere
|
Ctrl + Shift + N
|
|
Add an existing item to the project Project
|
Shift + Alt + A
|
|
Add a new item to the project Project
|
Ctrl + Shift + A
|
|
Attach the debugger to a process Anywhere
|
Ctrl + Alt + P
|
|
Show quick actions and fixes Text editor
|
Ctrl + .
|
Files and printing
15 shortcuts
| Action |
Windows |
|
Open the exception settings Debugging
|
Ctrl + Alt + E
|
|
Open a quick watch on an expression Debugging
|
Ctrl + Alt + Q
|
|
Open a file Anywhere
|
Ctrl + O
|
|
Open a project or solution Anywhere
|
Ctrl + Shift + O
|
|
Save every open file Anywhere
|
Ctrl + Shift + S
|
|
Open Class View Anywhere
|
Ctrl + Shift + C
|
|
Open the object browser Anywhere
|
Ctrl + Alt + J
|
|
Open the output window Anywhere
|
Ctrl + Alt + O
|
|
Open the properties window Anywhere
|
F4
|
|
Open Server Explorer Anywhere
|
Ctrl + Alt + S
|
|
Open Solution Explorer Anywhere
|
Ctrl + Alt + L
|
|
Open the toolbox Anywhere
|
Ctrl + Alt + X
|
|
Close the document window Document open
|
Ctrl + W
|
|
Move to the next document window Several documents open
|
Ctrl + F6
|
|
Switch documents with the navigator Several documents open
|
Ctrl + Tab
|
Navigation
15 shortcuts
| Action |
Windows |
|
Restart the debugging session Debugging
|
Ctrl + Shift + F5
|
|
Set the next statement to run Debugging
|
Ctrl + Shift + F10
|
|
Start debugging Debugging
|
F5
|
|
Start without the debugger Debugging
|
Ctrl + F5
|
|
Step into the next call Debugging
|
F11
|
|
Step over the next call Debugging
|
F10
|
|
Find the next match Anywhere
|
F3
|
|
Go to a line number Text editor
|
Ctrl + G
|
|
Go to the declaration Text editor
|
Ctrl + F12
|
|
Go to the definition Text editor
|
F12
|
|
Delete to the end of the word Text editor
|
Ctrl + Delete
|
|
Delete to the start of the word Text editor
|
Ctrl + Backspace
|
|
Navigate back to the previous location Anywhere
|
Ctrl + -
|
|
Navigate forward to the next location Anywhere
|
Ctrl + Shift + -
|
|
Move to the next split pane Split editor
|
F6
|
Paragraphs and lists
4 shortcuts
| Action |
Windows |
|
Go to the next result location Results list
|
F8
|
|
Open a new line above Text editor
|
Ctrl + Enter
|
|
List the members of a type Text editor
|
Ctrl + J
|
|
Open the error list Anywhere
|
Ctrl + E
|
Search
5 shortcuts
| Action |
Windows |
|
Find text in the file Anywhere
|
Ctrl + F
|
|
Find every reference to a symbol Text editor
|
Shift + F12
|
|
Find text across files Anywhere
|
Ctrl + Shift + F
|
|
Search files, types and members Anywhere
|
Ctrl + P
|
|
Replace text in the file Anywhere
|
Ctrl + H
|
Selection
8 shortcuts
| Action |
Windows |
|
Copy the selection Anywhere
|
Ctrl + C
|
|
Cut the selection Anywhere
|
Ctrl + X
|
|
Find the next match of the selection Text editor
|
Ctrl + F3
|
|
Format only the selection Text editor
|
Ctrl + K then Ctrl + F
|
|
Extend a column selection downward Text editor
|
Shift + Alt + Down arrow
|
|
Select everything Anywhere
|
Ctrl + A
|
|
Save the selected items Anywhere
|
Ctrl + S
|
|
Extract the selection into a method Text editor
|
Ctrl + R then Ctrl + M
|
System
1 shortcut
| Action |
Windows |
|
Quit Visual Studio Anywhere
|
Alt + F4
|
Tabs and windows
2 shortcuts
| Action |
Windows |
|
Set or clear a bookmark Text editor
|
Ctrl + K then Ctrl + K
|
|
Return focus to the document Tool window focused
|
Esc
|
View and zoom
1 shortcut
| Action |
Windows |
|
View the page in a browser Web project
|
Ctrl + Shift + W
|
From Shortivo at https://shortivo.net/platforms/visual-studio/. A dot means the maker does not document a key for that system. Nothing on this sheet was converted from one system to another.