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
⌘Dselect 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 Rthen type;Ctrl Ragain for older- Clear screen
Ctrl L- Cancel / EOF
Ctrl Cinterrupt ·Ctrl DEOF/exit- Suspend / resume
Ctrl Zthenfg
Browser devtools
- Open devtools
⌘⌥I/F12- Inspect element
⌘⇧C- Console
⌘⌥J- Command menu
⌘⇧P(inside devtools) — screenshots, throttling, etc.- Hard reload
⌘⇧R— bypass cache