Keyboard Shortcuts (Editor & Terminal)

The muscle-memory keys that make you faster in VS Code, the shell, and the browser devtools — the ones worth memorizing.

VS Code (⌘ = Ctrl on Windows/Linux)

Command palette
⌘⇧P — do anything by name
Quick open file
⌘P — fuzzy file search
Go to symbol / line
⌘⇧O · Ctrl G
Multi-cursor
⌘D select next match · +click to add cursors
Move / copy line
⌥↑/↓ move · ⌥⇧↑/↓ duplicate
Toggle comment
⌘/
Rename symbol
F2 — refactor everywhere
Integrated terminal
Ctrl `

Shell (bash/zsh — Emacs mode)

Start / end of line
Ctrl A / Ctrl E
Delete to end / start
Ctrl K / Ctrl U
Delete word back
Ctrl W
Search history
Ctrl R then type; Ctrl R again for older
Clear screen
Ctrl L
Cancel / EOF
Ctrl C interrupt · Ctrl D EOF/exit
Suspend / resume
Ctrl Z then fg

Browser devtools

Open devtools
⌘⌥I / F12
Inspect element
⌘⇧C
Console
⌘⌥J
Command menu
⌘⇧P (inside devtools) — screenshots, throttling, etc.
Hard reload
⌘⇧R — bypass cache