Visual Studio

Visual Studio Shortcuts

Visual Studio keyboard shortcuts for building, debugging, navigation and refactoring in the full Windows IDE. v2022

Source: Official documentation · Updated 2026-06

Shortcuts
5
Categories

Cheat sheet guide

Visual Studio shortcuts worth learning first

This page collects 45 searchable Visual Studio keyboard shortcuts across 5 categories. Start with the shortcuts for File & Project, Editing, Navigation, Search & Replace, then print the cheat sheet once the important ones are worth keeping nearby.

  • New fileCtrlN
  • UndoCtrlZ
  • Go to definitionF12
  • FindCtrlF
  • Build solutionCtrlShiftB
  • New projectCtrlShiftN

File & Project

7 shortcuts
New file
CtrlN
New project
CtrlShiftN
Open file
CtrlO
Save
CtrlS
Save all
CtrlShiftS
Close document
CtrlF4
Print
CtrlP

Editing

15 shortcuts
Undo
CtrlZ
Redo
CtrlY
Cut
CtrlX
Copy
CtrlC
Paste
CtrlV
Select all
CtrlA
Duplicate selection or line
CtrlD
Delete line
CtrlShiftL
Comment selection
CtrlK,CtrlC
Uncomment selection
CtrlK,CtrlU
Format document
CtrlK,CtrlD
List members (IntelliSense)
CtrlJ
Complete word
CtrlSpace
Quick actions / refactor
Ctrl.
Rename
CtrlR,CtrlR

Navigation

8 shortcuts
Go to definition
F12
Peek definition
AltF12
Find all references
ShiftF12
Go to all
CtrlT
Go to line
CtrlG
Navigate backward
Ctrl-
Navigate forward
CtrlShift-
Solution Explorer
CtrlAltL

Search & Replace

6 shortcuts
Find
CtrlF
Replace
CtrlH
Find in files
CtrlShiftF
Replace in files
CtrlShiftH
Find next
F3
Find previous
ShiftF3

Build & Debug

9 shortcuts
Build solution
CtrlShiftB
Start debugging
F5
Start without debugging
CtrlF5
Stop debugging
ShiftF5
Toggle breakpoint
F9
Step over
F10
Step into
F11
Step out
ShiftF11
Run to cursor
CtrlF10

Frequently asked questions

What is the fastest way to find Visual Studio shortcuts on this page?

Use the search box or press /, then type an action such as new file.

Can I print this Visual Studio shortcut cheat sheet?

Yes. Use the Print / PDF button or your browser print command to save a compact cheat sheet.

Does this page include Windows and Mac shortcuts for Visual Studio?

Yes. Use the OS tabs to switch between Windows and macOS shortcuts. For example, New file is Ctrl+N on Windows and — on macOS where available.

See also

No shortcuts match your search.