| Shortcut | Action |
|---|
Ctrl+T | Go to All (files, types, members, symbols) |
Ctrl+G | Go to line number |
F12 | Go to definition |
Alt+F12 | Peek definition (inline) |
Shift+F12 | Find all references |
Ctrl+F12 | Go to implementation |
Ctrl+- | Navigate back |
Ctrl+Shift+- | Navigate forward |
Ctrl+K, Ctrl+O | Toggle between .cs and designer file |
Ctrl+[, S | Sync solution explorer to current file |
| Shortcut | Action |
|---|
Ctrl+D | Duplicate line |
Ctrl+L | Delete line |
Alt+↑ / Alt+↓ | Move line up/down |
Ctrl+Shift+V | Clipboard ring (cycle through clipboard history) |
Ctrl+Shift+L | Delete line |
Ctrl+K, Ctrl+C | Comment selection |
Ctrl+K, Ctrl+U | Uncomment selection |
Ctrl+K, Ctrl+D | Format document |
Ctrl+K, Ctrl+F | Format selection |
Tab | Increase indent |
Shift+Tab | Decrease indent |
Ctrl+Shift+Space | Show parameter info |
Ctrl+. | Quick actions and refactorings |
| Shortcut | Action |
|---|
Ctrl+Space | Trigger IntelliSense |
Ctrl+Shift+Space | Parameter info tooltip |
Alt+Insert | Generate code (constructor, properties, etc.) |
Tab / Enter | Commit IntelliSense suggestion |
Ctrl+J | List members |
Ctrl+K, Ctrl+X | Insert code snippet |
Ctrl+K, Ctrl+S | Surround with snippet |
| Shortcut | Action |
|---|
Ctrl+F | Find in current file |
Ctrl+H | Replace in current file |
Ctrl+Shift+F | Find in all files |
Ctrl+Shift+H | Replace in all files |
F3 | Find next |
Shift+F3 | Find previous |
Ctrl+F3 | Find next (word under cursor) |
Alt+F3 | Find selected text next |
| Shortcut | Action |
|---|
F2 | Rename symbol |
Ctrl+R, Ctrl+R | Rename (older shortcut) |
Ctrl+R, Ctrl+E | Encapsulate field |
Ctrl+R, Ctrl+M | Extract method |
Ctrl+R, Ctrl+I | Extract interface |
Ctrl+. | Show suggested actions (lightbulb) |
Alt+Enter | Show error/warning actions |
| Shortcut | Action |
|---|
F5 | Start debugging |
Ctrl+F5 | Start without debugging |
Shift+F5 | Stop debugging |
Ctrl+Shift+F5 | Restart debugging |
F9 | Toggle breakpoint |
Ctrl+Shift+F9 | Delete all breakpoints |
F10 | Step over |
F11 | Step into |
Shift+F11 | Step out |
F5 | Continue (when paused) |
Ctrl+Alt+Q | Quick watch (inspect expression) |
Ctrl+Alt+W, 1 | Watch window 1 |
Ctrl+Alt+I | Immediate window |
| Shortcut | Action |
|---|
Ctrl+Tab | Switch between open documents |
Ctrl+F4 | Close current document |
Ctrl+W, S | Open Solution Explorer |
Ctrl+W, E | Open Error List |
Ctrl+W, O | Open Output window |
Ctrl+W, T | Open Task List |
Ctrl+W, P | Open Properties window |
Alt+F7 | Open Team Explorer |
Ctrl+\, Ctrl+M | Open Test Explorer |
| Shortcut | Action |
|---|
Ctrl+Shift+B | Build solution |
Ctrl+B | Build current project |
Ctrl+F7 | Compile current file |
Ctrl+Break | Cancel build |
F5 | Run with debugger |
Ctrl+F5 | Run without debugger |
| Shortcut | Action |
|---|
Ctrl+M, Ctrl+O | Collapse all to definitions |
Ctrl+M, Ctrl+L | Toggle all outlining |
Ctrl+M, Ctrl+M | Toggle current region |
Ctrl+M, Ctrl+P | Stop outlining |
Ctrl+K, Ctrl+K | Toggle bookmark |
Ctrl+K, Ctrl+N | Next bookmark |
Ctrl+K, Ctrl+W | Bookmark window |
Customize shortcuts: Tools → Options → Environment → Keyboard
Chord shortcuts (two-key sequences like Ctrl+K, Ctrl+D) require holding the first chord, releasing, then pressing the second.
Ctrl+T (Go to All) is the most powerful navigation shortcut — prefix with:
f to search files only
t to search types only
m to search members only
# to search symbols