Show Menu
Cheatography

Visual Sutio 2022 Personal Cheat Sheet Keyboard Shortcuts (DRAFT) by

My personal shortcuts for visual studio 2022 (heavily modified)

This is a draft cheat sheet. It is a work in progress and is not finished yet.

General

Save
Ctrl+S
Save All
Ctrl+S­hift+S
Close Tabs
Ctrl+F4
Close All But This Tab
Ctrl+S­hift+F4
New File
Ctrl + N

Naviga­tio­n/Find

Find
Ctrl + F
Replace
Ctrl + H
Find in Files
Ctrl + Shift + F
Replace in Files
Ctrl + Shift + H
Find Next
F3
Find Previous
Shift + F3
Find Next (Selec­tion)
Ctrl + F3
Find Previous (Selec­tion)
Ctrl + Shift + F3
Find AR
Alt + F3
Find All External References
Alt + Shift + F3
View Call Hierarch
Ctrl + Alt + F3

Code Navigation

Go to File
Ctrl + Shift + T
Go to Type
Ctrl + T
Go to Line
Ctrl + G
Go to Matching Brace
Ctrl + ]
Go to Base
Alt + Home
Go to Definition
F12
Peek Definition
Ctrl + Shift + F12
Go to Declar­ation
Alt + F12
Go to Implem­ent­ation
Ctrl + F12
Show Quick Info
F1
Next Error
F10
Previous Error
Shift + F10
Next Issue in File
Ctrl + F10
Previous Issue in File
Ctrl + Shift + F10
 

Code Editing

Code Completion
Ctrl + Space
Quick Action­s/R­efactor
Ctrl + .
Rename
F2
Format Document
Alt + F
Format Section
Alt + Shift + F
Toggle Line Comments
Ctrl + /
Move Line Up/Down
Alt + Up/Down
Join Lines
Ctrl + M

Advance Refact­oring

Extract Interface
Ctrl + R, I
Extract Method
Ctrl + R, M
Encaps­ulate Method
Ctrl + R, E
Reorder Parameters
Ctrl + R, O
Make Upper/­Lower Case
Ctrl + R, U/L
Sort Lines
Ctrl + R, S
Delete Line
Ctrl + D, D
Delete Previo­us/Next Word
Ctrl + D, B/E
Delete to Beginn­ing/End of Line
Ctrl + D, G/H
Duplicate Line Above
Ctrl + E, Up

Show Windows

Breakp­oints
Ctrl + Alt + B
Call Stack
Ctrl + Alt + C
Error List
Ctrl + Alt + E
Exception Settings
Ctrl + Alt + G
Immediate
Ctrl + Alt + I
Locals
Ctrl + Alt + L
Output
Ctrl + Alt + O
Quick Watch
Ctrl + Alt + Q
Watch 1..4
Ctrl + Alt + W, 1..4
 

Build, Run, Debug

Clean Solution
Alt + Shift + B
Build Solution
Ctrl + Shift + B
Clean Project
Alt + B
Build Project
Ctrl + B
Cancel Build
Ctrl + Pause
Debug/­Con­tinue
Ctrl + F5
Stop
Shift + F5
Restart
Ctrl + Shift + F5
Attach to Process
Alt + F5
Enable­/Di­sable Breakpoint
Ctrl + F9
Toggle Breakpoint
F9
Step Over
F6
Step Into
F7
Step Out
Ctrl + F7
Run to Cursor
F8
Add Watch
Ctrl + W