Cheatography
https://cheatography.com
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+Shift+S |
Close Tabs |
Ctrl+F4 |
Close All But This Tab |
Ctrl+Shift+F4 |
New File |
Ctrl + N |
Navigation/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 (Selection) |
Ctrl + F3 |
Find Previous (Selection) |
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 Declaration |
Alt + F12 |
Go to Implementation |
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 Actions/Refactor |
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 Refactoring
Extract Interface |
Ctrl + R, I |
Extract Method |
Ctrl + R, M |
Encapsulate 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 Previous/Next Word |
Ctrl + D, B/E |
Delete to Beginning/End of Line |
Ctrl + D, G/H |
Duplicate Line Above |
Ctrl + E, Up |
Show Windows
Breakpoints |
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/Continue |
Ctrl + F5 |
Stop |
Shift + F5 |
Restart |
Ctrl + Shift + F5 |
Attach to Process |
Alt + F5 |
Enable/Disable Breakpoint |
Ctrl + F9 |
Toggle Breakpoint |
F9 |
Step Over |
F6 |
Step Into |
F7 |
Step Out |
Ctrl + F7 |
Run to Cursor |
F8 |
Add Watch |
Ctrl + W |
|