Visual Studio Keyboard Shortcuts
A deep Visual Studio shortcuts guide for navigation, editing, refactor, debugging, and testing.

Search & Navigation
| Key / Code | Description |
|---|---|
| Ctrl + Q | Quick Search |
| Ctrl + T | Go to All |
| Ctrl + , | Go to Symbol |
| Ctrl + - | Navigate backward |
| Ctrl + Shift + - | Navigate forward |
| Ctrl + Tab | Next document |
Editing
| Key / Code | Description |
|---|---|
| Ctrl + K, Ctrl + C | Comment selection |
| Ctrl + K, Ctrl + U | Uncomment selection |
| Ctrl + D | Duplicate line |
| Alt + Up/Down | Move line |
| Ctrl + L | Delete line |
| Ctrl + Shift + V | Cycle clipboard ring |
Refactor
| Key / Code | Description |
|---|---|
| Ctrl + R, Ctrl + R | Rename |
| Ctrl + R, Ctrl + V | Extract method |
| Ctrl + R, Ctrl + I | Inline |
| Ctrl + . | Quick Actions |
Find & Replace
| Key / Code | Description |
|---|---|
| Ctrl + F | Find |
| Ctrl + H | Replace |
| Ctrl + Shift + F | Find in Files |
| Ctrl + Shift + H | Replace in Files |
| F12 | Go to definition |
Debugging
| Key / Code | Description |
|---|---|
| F5 | Start debugging |
| Shift + F5 | Stop debugging |
| F9 | Toggle breakpoint |
| F10 | Step over |
| F11 | Step into |
| Shift + F11 | Step out |
Testing
| Key / Code | Description |
|---|---|
| Ctrl + R, T | Run all tests |
| Ctrl + R, Ctrl + T | Run tests in context |
| Ctrl + R, L | Run last test |
Pro Workflow
Common flow: search → quick action → rename → debug → test.
Ctrl + Q # quick search
Ctrl + . # quick actions
Ctrl + R, Ctrl + R # rename
F5 # debug
Ctrl + R, T # testKnowledge is power.