I used to lose 20-30 minutes per day navigating VS Code with a mouse.
Not because I didn't know shortcuts existed — I just couldn't remember them under pressure. Every time I needed to multi-select, rename a symbol, or jump between files, my brain blanked and my hand reached for the trackpad.
So I went through every VS Code keyboard shortcut, tested them in real projects, and distilled the ones that actually stuck. Here's what survived.
Navigation (Where You Lose Most Time)
Ctrl+P — Quick file open. Type part of any filename. Faster than any file tree.
Ctrl+Shift+P — Command palette. If you only learn one shortcut, make it this one. Every VS Code action is one command search away.
Ctrl+G — Go to line number. Paste a line number from an error log and land exactly there.
Alt+←/→ — Navigate backwards/forwards through cursor history. After jumping to a definition, this brings you back.
Ctrl+Tab — Cycle through open editors. Hold Ctrl to browse the list.
Editing (Where You Save the Most Time)
Alt+↑/↓ — Move current line up or down. No cut/paste needed.
Shift+Alt+↓ — Duplicate current line. Essential for repetitive code patterns.
Ctrl+D — Select the next occurrence of current selection. Press repeatedly to select more. Then type to replace all at once.
Ctrl+Shift+L — Select ALL occurrences of current selection. The nuclear version of Ctrl+D.
Ctrl+/ — Toggle comment. Works on single lines and selections.
Shift+Alt+F — Format document. Prettier/ESLint fires instantly.
Multi-Cursor (The Real Power Move)
Alt+Click — Place cursor at any additional position. Click 10 places, type once.
Ctrl+Alt+↑/↓ — Add cursor above/below. Perfect for editing parallel lines of code.
Ctrl+Shift+Alt+↓ — Column (box) selection. Select a rectangle of text across multiple lines.
Once you internalize multi-cursor, you'll stop writing repetitive code by hand.
Code Intelligence
F12 — Go to definition. Jumps to where a function/variable is defined.
Alt+F12 — Peek definition. Shows definition in an inline popup without leaving your current file.
Shift+F12 — Find all references. See everywhere a symbol is used across the entire project.
F2 — Rename symbol. Renames across all files. The only safe way to rename.
Ctrl+Space — Trigger IntelliSense manually. Useful when autocomplete doesn't fire automatically.
Terminal & Panels
Ctrl+ `` — Toggle integrated terminal.
Ctrl+Shift+ — New terminal.
Ctrl+B — Toggle sidebar. Maximizes your editor space instantly.
Ctrl+J — Toggle panel (terminal/output/problems). Different from sidebar.
The Ones People Miss
Ctrl+K Ctrl+C — Add line comment (multi-step shortcut: hold Ctrl, press K, then C).
Ctrl+K Z — Zen Mode. Fullscreen, no distractions.
Ctrl+Shift+K — Delete current line. No select, no backspace.
How to Actually Remember These
The mistake most people make: they read a list like this, nod, and forget everything in 10 minutes.
What worked for me:
- Pick 3 shortcuts per week, not 25 at once
- Put a sticky note on your monitor until they're muscle memory
- Deliberately reach for the shortcut even when clicking would be faster
After 8 weeks, you'll have internalized the full toolkit without feeling overwhelmed.
I turned this full list (plus 15 more advanced shortcuts for debugging, git integration, and multi-workspace workflows) into a printable PDF cheat sheet.
If you want to keep this on your desk or second monitor: VS Code Productivity Cheat Sheet — PDF, $5
It's formatted to print on A4/Letter and fits on one page without squinting.
What's your most-used VS Code shortcut that most people don't know? Drop it in the comments.
Top comments (0)