Photo by Lucas Santos on Unsplash
So I was pair programming with a junior dev last year and they watched me navigate a 3,000-line file without touching the mouse once. They literally stopped mid-sentence and said "wait, how did you just do that?" And honestly, I forgot that stuff isn't obvious when you're starting out — or even when you've been using VS Code for a while but never bothered digging into what it can actually do.
Most articles about VS Code keyboard shortcuts give you the same ten things. Ctrl+S to save. Ctrl+Z to undo. Cool, groundbreaking stuff. I want to talk about the shortcuts that made me go "oh, that's what I've been wasting time on."
Multi-Cursor Editing Is the One Everyone Skips
If you're still manually editing the same variable name in six places, I've seen this a hundred times and it never stops hurting to watch. Select a word, then hit Ctrl+D (Windows/Linux) or Cmd+D (Mac) to grab the next matching occurrence. Keep pressing it to add more cursors. Now you're editing all of them simultaneously.
Here's where it gets actually powerful though — if you want to select every instance of something in the file at once, just do Ctrl+Shift+L. That drops a cursor on all matches instantly. Renaming a poorly-named variable across a whole component? Done in two seconds.
And if you want to just manually place cursors wherever you want, hold Alt and click around. Sounds simple but I've watched senior engineers not know this existed.
The Command Palette Is Your Best Friend
Ctrl+Shift+P (or Cmd+Shift+P on Mac) opens the Command Palette, and honestly this alone can replace memorizing a dozen other shortcuts. Can't remember how to toggle word wrap? Open the palette, type "word wrap," hit enter. Want to change the language mode for a file? Same thing. It's basically a search bar for every action VS Code can perform.
Related to this — Ctrl+P opens Quick Open, which lets you fuzzy-search any file in your workspace by name. No more digging through the sidebar explorer like it's 2005. Type a partial filename and jump straight to it. If you add a : after the filename, you can even jump to a specific line number. So Ctrl+P → app.js:142 drops you exactly where you need to be.
Line Manipulation Without Selecting Anything
This one sounds small but I use it probably fifty times a day. Put your cursor anywhere on a line — you don't need to select the whole thing — and press Ctrl+Shift+K to delete the entire line. No highlighting required. Compare that to the old Home, Shift+End, Delete dance and you'll understand why this matters.
Want to move a line up or down? Alt+Up / Alt+Down. The line just floats to wherever you need it. This is genuinely one of those things where once you know it, you'll notice every time someone in a tutorial doesn't use it and it'll bug you.
And Alt+Shift+Up / Alt+Shift+Down duplicates the line above or below. Great for when you need a slightly modified copy of something and you don't want to bother with copy-paste.
Navigating Code Like You Mean It
Ctrl+G jumps to a specific line number — useful when a stack trace is yelling at you. But the one I really want you to know is Ctrl+Shift+O, which gives you a symbol search within the current file. Functions, classes, variables — you can jump to any of them by name. Way faster than scrolling or Ctrl+F-ing through your own code.
For project-wide stuff, Ctrl+T does the same thing but across your whole workspace. You type a function name and VS Code shows you every place it's defined. This pairs really well with F12 (Go to Definition) and Alt+F12 (Peek Definition — opens it inline without leaving your current file, which I honestly prefer most of the time).
The Insider Tricks
Alright so here are two things that took me embarrassingly long to find.
First: Ctrl+` toggles the integrated terminal. Everyone knows that. But Ctrl+Shift+` opens a new terminal instance without closing the current one. If you're juggling a dev server and running commands at the same time, you'll use this constantly.
Second, and this is the one I don't see mentioned enough — you can fold and unfold code blocks with Ctrl+Shift+[ to collapse and Ctrl+Shift+] to expand. But the real trick is Ctrl+K Ctrl+0 (that's a zero) to collapse everything in the file at once, giving you a bird's-eye view of your entire code structure. Then Ctrl+K Ctrl+J unfolds it all. This is genuinely useful when you're dropped into an unfamiliar codebase and trying to understand how it's organized before you start reading line by line.
One Setting Worth Changing Right Now
Not a shortcut exactly, but while we're here — open your settings with Ctrl+, and search for Editor: Linked Editing. Turn it on. Now when you edit an HTML opening tag, the closing tag updates automatically. I have no idea why this isn't on by default, but it's not, and it should be.
If you want to see all your current keyboard shortcuts laid out and searchable, Ctrl+K Ctrl+S opens the keyboard shortcuts editor. You can search, edit, and add bindings right there. Worth bookmarking mentally if you ever find yourself fighting muscle memory from another editor — you can just remap things to match what you're used to.
Anyway, hope this saves you some time. The VS Code shortcut rabbit hole goes deep if you want to keep digging — the keybindings JSON file alone is worth an entire separate post — but these should be enough to meaningfully speed up your day-to-day without having to memorize a wall of key combos.
Related: VS Code Tips and Tricks That Actually Save You Time (Not the Obvious Ones)
๋๊ธ
๋๊ธ ์ฐ๊ธฐ