Keyboard Shortcuts
Visual Studio
Search and Navigation
Function |
Key |
Visual Studio search |
Ctrl + Q |
Go to all |
Ctrl + T |
Go to definition |
F12 |
Peak to implementation |
Alt + F12 |
Go to implementation |
Ctrl + F12 |
Go to next error |
Ctrl + Shift + F12 |
Go to next result |
F8 |
Go to previous result |
Shift + F8 |
Editing and refactoring
Function |
Key |
Quick Actions |
Ctrl + . or Alt + Enter |
Method Info |
Ctrl + K , Ctrl + I |
Comment |
Ctrl + K , Ctrl + C |
UnComment |
Ctrl + K , Ctrl + U |
Delete Line |
Ctrl + Shift + L |
Move code up |
Alt + ↑ |
Move code down |
Alt + ↓ |
Format Document |
Ctrl + K , Ctrl + D |
Format Selection |
Ctrl + K , Ctrl + F |
Rename |
Ctrl + R , Ctrl + R |
Encapsulate Field |
Ctrl + R , Ctrl + E |
Remove and Sort Usings |
Ctrl + R , Ctrl + G |
Extract Method |
Ctrl + R , Ctrl + M |
Debugging
Function |
Key |
Debug |
F5 |
Run |
Crl + F5 |
Stop |
Shift + F5 |
Toggle breakpoint |
F9 |
Step over |
F10 |
Step into |
F11 |
Step out |
Shift + F11 |