Visual Studio Keyboard Shortcuts

Visual Studio is Windows-only: Visual Studio for Mac was retired by Microsoft in August 2024, so there's no cross-platform twin to cover. Shortcuts lean on chord sequences (Ctrl+K, Ctrl+C) far more than most editors, mirroring Ctrl+R for refactoring and Ctrl+K for the rest. HKeys covers Visual Studio on Windows.

Choose your Platform: full shortcut list + printable PDF

Windows Visual Studio ships as a Windows-only IDE today. Visual Studio for Mac existed for years but Microsoft retired it in August 2024, so this page covers the one platform Visual Studio actually runs on.

What Visual Studio shortcuts cover

Chord sequences. Many shortcuts are two-step: press Ctrl+K, release, then press a second key. Ctrl+K, Ctrl+C comments a selection; Ctrl+K, Ctrl+D formats the document; Ctrl+K, Ctrl+K toggles a bookmark.

Refactoring under Ctrl+R. Rename (Ctrl+R, Ctrl+R), Extract Method (Ctrl+R, Ctrl+M), and Encapsulate Field (Ctrl+R, Ctrl+E) all share the same Ctrl+R prefix.

Debugging. F5 starts the debugger, F9 toggles a breakpoint, F10 and F11 step over and into code, the same F-key row IntelliJ-family IDEs use.

Navigation. Ctrl+, opens Go To Anything for files, types, and members; F12 jumps to a definition; Ctrl+- and Ctrl+Shift+- walk backward and forward through recent locations.

Testing. Test Explorer shortcuts share a Ctrl+R prefix with refactoring but a different second key: Ctrl+R, A runs all tests, Ctrl+R, Ctrl+A debugs all tests.

Printable PDF

A printable PDF of Visual Studio shortcuts is available. The editing, debugging, and refactoring shortcuts are worth learning first, everything else builds on the same Ctrl+K and Ctrl+R chord patterns.

FAQ

Is Visual Studio available on Mac?

Not anymore. Visual Studio for Mac existed as a separate product built on Xamarin Studio, but Microsoft retired it on August 31, 2024. Mac developers targeting .NET now typically use Visual Studio Code or JetBrains Rider instead.

Why do so many Visual Studio shortcuts use commas, like Ctrl+K, Ctrl+C?

The comma marks a two-step chord: press and release Ctrl+K first, then press the second combination. It's how Visual Studio fits dozens of related commands (comment, format, bookmark, outline) under a small set of memorable prefixes instead of one shortcut per unrelated key combination.

What's the difference between Visual Studio and Visual Studio Code shortcuts?

They're different products with different default keymaps. Visual Studio (this page) is the full Windows IDE for .NET and C++ with chord-heavy refactoring shortcuts like Ctrl+R, Ctrl+R for Rename; Visual Studio Code is a separate, lighter, cross-platform editor with its own shortcut set.

Does Visual Studio use Ctrl+/ or Ctrl+K, Ctrl+C to toggle a comment?

Both work. Ctrl+/ was added in Visual Studio 2022 version 17.11; Ctrl+K, Ctrl+/ and the older Ctrl+K, Ctrl+C (comment) / Ctrl+K, Ctrl+U (uncomment) pair still work in that version and earlier ones.

References

This section lists official sources and documentation for Visual Studio. Use these references to verify shortcut behavior instead of trusting old notes, screenshots, or memory.

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.