The VS Code Shortcuts That Separate Junior Devs from Seniors
Every developer knows Ctrl+S. But the developers who fly through codebases? They know the shortcuts that eliminate friction entirely.
Here are 7 VS Code shortcuts that most developers ignore — and why they’re worth learning.
1. Open Any File Without Touching the Mouse
Windows/Linux: Ctrl + P
Mac: Cmd + P
Type any filename (or part of it). VS Code instantly finds and opens it. No more clicking through folder trees.
Why seniors use it: In large codebases, navigating by mouse is slow. This shortcut makes file navigation instant.
2. Run Any Command by Name
Windows/Linux: Ctrl + Shift + P
Mac: Cmd + Shift + P
Need to change your theme? Install an extension? Toggle a setting? Hit this shortcut and type what you want. VS Code shows matching commands instantly.
Hidden power: This is the gateway to every feature in VS Code. If you can’t find a button, it’s probably here.
3. Search Across Your Entire Project
Windows/Linux: Ctrl + Shift + F
Mac: Cmd + Shift + F
Find a string across every file in your project. Perfect for tracking down function calls, variable names, or that one TODO you forgot about.
Pro tip: Use regex for complex searches. Find all console.log statements before deploying.
4. Toggle Word Wrap Instantly
Windows/Linux: Alt + Z
Mac: Opt + Z
Long lines of code pushing off the screen? Toggle word wrap and read everything without horizontal scrolling.
Why it matters: Especially useful for JSON files, markdown, and long string literals.
5. Rename a Variable Everywhere (Even Across Files)
Windows/Linux/Mac: F2
Put your cursor on any variable, function, or class name. Hit F2. Type the new name. VS Code renames every reference — even if it’s in a different file.
Why it’s better than find-and-replace: It’s semantic. It won’t accidentally rename a string that happens to match your variable name.
6. Select the Next Occurrence
Windows/Linux: Ctrl + D
Mac: Cmd + D
Highlight a word. Hit Ctrl+D repeatedly to select each occurrence one by one. Then type — and edit them all at once.
Use case: Changing a variable name in just one function. Or updating a repeated value without global find-and-replace.
7. Toggle the Integrated Terminal
Windows/Linux: Ctrl + ` (backtick)
Mac: Control + ` (backtick)
Bring up the terminal without leaving VS Code. Run tests, install packages, commit code — then hide it just as fast.
Why seniors love it: Context-switching kills focus. This keeps your workflow in one window.
Master These in Shortcut Kings
Shortcuts only stick if you practice them.
At shortcutkings.com, you can drill these VS Code shortcuts in a game format. Build the muscle memory so your fingers move before your brain has to think.