Visual Studio Keyboard Shortcuts

Complete Visual Studio keyboard shortcuts reference — 69 shortcuts across 7 categories. Quick reference cheat sheet for Windows.

Search & Navigation (10)

ShortcutAction
Ctrl + TGo To All
Ctrl + QQuick Launch
Ctrl + FFind
Ctrl + HReplace
Ctrl + Shift + FFind in Files
Ctrl + Shift + HReplace in Files
F3Find Next
Ctrl + F3Find Next Selected
Ctrl + GGo To Line
Ctrl + -Navigate Backward

Code Navigation (7)

ShortcutAction
F12Go To Definition
Ctrl + F12Go To Declaration
Alt + F12Peek Definition
Shift + F12Find All References
Shift + Alt + F12Quick Find Symbol
F8Next Location
Shift + F8Previous Location

Editing (15)

ShortcutAction
Ctrl + K, Ctrl + CComment Selection
Ctrl + K, Ctrl + UUncomment Selection
Ctrl + /Toggle Line Comment
Ctrl + K, Ctrl + DFormat Document
Ctrl + K, Ctrl + FFormat Selection
Ctrl + DDuplicate
Ctrl + LLine Cut
Ctrl + EnterLine Open Above
Ctrl + SpaceComplete Word
Ctrl + Shift + SpaceParameter Info
Ctrl + K, Ctrl + XInsert Snippet
Ctrl + M, Ctrl + OCollapse to Definitions
Ctrl + M, Ctrl + MToggle Outlining
Ctrl + K, Ctrl + KToggle Bookmark
Ctrl + R, Ctrl + GRemove and Sort Usings

Build (4)

ShortcutAction
Ctrl + Shift + BBuild Solution
Ctrl + F7Compile
Ctrl + BreakCancel Build
Alt + F11Run Code Analysis

Debugging (14)

ShortcutAction
F5Start Debugging
Ctrl + F5Start Without Debugging
Shift + F5Stop Debugging
Ctrl + Shift + F5Restart
F9Toggle Breakpoint
Ctrl + Shift + F9Delete All Breakpoints
F10Step Over
F11Step Into
Shift + F11Step Out
Ctrl + F10Run to Cursor
Ctrl + Shift + F10Set Next Statement
Shift + F9Quick Watch
Ctrl + Alt + BBreakpoints Window
Ctrl + Alt + IImmediate Window

Refactoring (6)

ShortcutAction
Ctrl + R, Ctrl + RRename
Ctrl + R, Ctrl + MExtract Method
Ctrl + R, Ctrl + IExtract Interface
Ctrl + R, Ctrl + EEncapsulate Field
Ctrl + .Quick Actions
Ctrl + R, Ctrl + OReorder Parameters

Windows & Files (13)

ShortcutAction
Ctrl + Alt + LSolution Explorer
F4Properties Window
Ctrl + Alt + OOutput Window
Ctrl + \, EError List
Ctrl + Alt + XToolbox
Ctrl + E, TTest Explorer
Ctrl + WClose Document
Ctrl + TabSwitch Documents
Ctrl + NNew File
Ctrl + Shift + NNew Project
Ctrl + SSave
Ctrl + Shift + SSave All
Shift + Alt + EnterFull Screen
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Related Shortcut Pages

VS Code JetBrains Rider Android Studio Windows Eclipse Git

Search 13,500+ shortcuts across 269 platforms

Explore All Platforms Practice Shortcuts
📜 Every shortcut on this page is taken from the official Visual Studio documentation — learn.microsoft.com
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

🤖 Ask AI about Visual Studio shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok