Visual Studio Windows Popular Shortcut Set

Keyboard shortcuts for Visual Studio on Windows. Covers editing, debugging, refactoring, navigation, testing, and window management.
Key label style

Build

Build solution
Ctrl+Shift+B

Debug

Delete all breakpoints
Ctrl+Shift+F9
Start
F5
Toggle breakpoint
F9

Edit

Comment selection
Ctrl+K,Ctrl+C
in the Text Editor
Go to definition
F12
Toggle line commentCtrl+/ requires Visual Studio 2022 version 17.11 or later; Ctrl+K, Ctrl+/ works in earlier versions too.
Ctrl+/
or
Ctrl+K,Ctrl+/
Undo
Ctrl+Z
or
Alt+Bksp

Refactor

Extract method
Ctrl+R,Ctrl+M
Rename
Ctrl+R,Ctrl+R

Test Explorer

Run all tests
Ctrl+R,A

Need more than shortcuts?
Visit the Visual Studio app page for an overview and helpful links.

Want to suggest a new app, report a bug, or get help? Email us at info@hkeys.app.

For anything else or just a quick hello, write to us at info@hkeys.app.