Intro
Visual Studio on Windows leans on two-step chords more than most IDEs: Ctrl+K starts editing commands, Ctrl+R starts refactoring commands, and the second keypress picks the specific action.
https://hkeys.app
Visual Studio on Windows leans on two-step chords more than most IDEs: Ctrl+K starts editing commands, Ctrl+R starts refactoring commands, and the second keypress picks the specific action.
Ctrl+K is the editing prefix. Comment (Ctrl+K, Ctrl+C), uncomment (Ctrl+K, Ctrl+U), format document (Ctrl+K, Ctrl+D), and toggle bookmark (Ctrl+K, Ctrl+K) all share it.
Ctrl+R is the refactoring and testing prefix. Rename (Ctrl+R, Ctrl+R) and Extract Method (Ctrl+R, Ctrl+M) live here, alongside Test Explorer's Run All Tests (Ctrl+R, A).
F-keys drive debugging. F5 starts, F9 toggles a breakpoint, F10 steps over, F11 steps into, matching the row most Windows IDEs use for the same actions.
Ctrl+, opens Go To Anything. Also bound to Ctrl+P and Ctrl+T, it searches files, types, and members from one box.
The Visual Studio Windows shortcut list is available as a printable PDF. The Ctrl+K editing chords and Ctrl+R refactoring chords are worth learning first.
Ctrl+K, Ctrl+C comments the selection; Ctrl+K, Ctrl+U uncomments it. Visual Studio 2022 version 17.11 and later also supports Ctrl+/ as a single-step toggle for both.
Ctrl+R, Ctrl+R opens Rename, which updates every reference to the symbol across the solution, not just the current file.
Ctrl+, (or Ctrl+P, or Ctrl+T) opens Go To Anything, a single search box for files, types, members, and members within a file.
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.