Cheatography
https://cheatography.com
Shortcuts for navigating within VS Code without the mouse.
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Cursor
Go to last edit |
⌘K ⌘Q |
Go Back |
⌃- |
Go Forward |
⇧⌃- |
Symbols
Got to definition |
F12 |
Go to references |
⇧F12 |
Editor
Move line up/down |
⌥ ↑/↓ |
Copy line up/down |
⇧⌥ ↑/↓ |
Move by word |
⌥ ←/→ |
Move by word (CamelCase) |
⌃⌥ ←/→ |
Find next occurrence |
⇧⌘D |
Move to beginning/end of line |
⌘ ←/→ |
Move to beginning/end of file |
⌘ ↑/↓ |
Expand/reduce selection scope |
⇧⌃⌘ ←/→ |
When a line is wrapped, hit ⌘→ once for the visual end of line, and a second time for actual end of line.
|
|
Via Command Palette (⌘P)
Go to Line |
:<num> |
Go to Line & Column |
:<num>:<num> |
Go to Symbol (in current file) |
@<text> |
Got to Symbol (grouped by type) |
@:<text> |
Go to Symbol (in workspace) |
#<text> |
Find text |
%<text> |
Quick Select
Select inside either quote |
⌘K ⇧, |
Select inside double quote |
⌘K ⇧2 |
Select inside single quote |
⌘K ⇧# |
Select inside parenthesis |
⌘K ⇧9 |
Select inside curly brackets |
⌘K ⌃⌥8 |
Select inside back ticks |
⌘K ⇧' |
Select inside square brackets |
⌘K ⌃⌥5 |
Select inside tag |
⌘K ⇧< |
Select outside curly brackets |
⌘K ⌃⌥9 |
Select outside parenthesis |
⌘K ⇧0 |
Select outside square brackets |
⌘K ⌃⌥6 |
Switch Quotes |
⌘K ⇧. |
|
|
Files
Switch Tabs |
⌃TAB |
Open File w/ name (fuzzy search) |
⌘P |
Go to Symbol (workspace) |
⌘T |
Prev/Next Tab |
⌥⌘ ←/→ |
|