› Visual Studio

Visual Studio Shortcuts

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

Source: Official documentation · Dataset date 2026-06

45
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
Ctrl+N
New project
CtrlShiftN
Ctrl+Shift+N
Open file
CtrlO
Ctrl+O
Save
CtrlS
Ctrl+S
Save all
CtrlShiftS
Ctrl+Shift+S
Close document
CtrlF4
Ctrl+F4
Print
CtrlP
Ctrl+P

Editing

15 shortcuts
Undo
CtrlZ
Ctrl+Z
Redo
CtrlY
Ctrl+Y
Cut
CtrlX
Ctrl+X
Copy
CtrlC
Ctrl+C
Paste
CtrlV
Ctrl+V
Select all
CtrlA
Ctrl+A
Duplicate selection or line
CtrlD
Ctrl+D
Delete line
CtrlShiftL
Ctrl+Shift+L
Comment selection
CtrlK,CtrlC
Ctrl+K Ctrl+C
Uncomment selection
CtrlK,CtrlU
Ctrl+K Ctrl+U
Format document
CtrlK,CtrlD
Ctrl+K Ctrl+D
List members (IntelliSense)
CtrlJ
Ctrl+J
Complete word
CtrlSpace
Ctrl+Space
Quick actions / refactor
Ctrl.
Ctrl+.
Rename
CtrlR,CtrlR
Ctrl+R Ctrl+R

Navigation

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

Search & Replace

6 shortcuts
Find
CtrlF
Ctrl+F
Replace
CtrlH
Ctrl+H
Find in files
CtrlShiftF
Ctrl+Shift+F
Replace in files
CtrlShiftH
Ctrl+Shift+H
Find next
F3
F3
Find previous
ShiftF3
Shift+F3

Build & Debug

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

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.

Which operating systems are included for Visual Studio?

This reference includes shortcuts for Windows. Availability depends on the action and app version.

See also

Explore shortcuts by key

Key lookup

No shortcuts match your search.