VS Code Keyboard Shortcuts That Actually Save You Time (Not Just the Obvious Ones)

VS Code Keyboard Shortcuts That Actually Save You Time (Not Just the Obvious Ones)

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)

๋Œ“๊ธ€

Zoho IMAP Settings: The Complete Fix When Your Email Stops Syncing

Quick Summary Zoho IMAP breaks more often than it should, and the error messages are genuinely useless. The fix is usually a combination of using the right server address, enabling IMAP inside Zoho Mail's settings, and generating an app-specific password. This guide covers the exact steps for Outlook, iPhone, Thunderbird, and Android so you stop going in circles. Photo by Fotis Fotopoulos on Unsplash So your Zoho Mail stopped syncing. Emails aren't coming in, your phone shows a spinning indicator forever, or Outlook throws some vague authentication error and you have no idea what changed. Sound familiar? I've seen this exact situation probably thirty times across different clients, and every single time the person swears they didn't change anything. And honestly? They usually didn't. Zoho changed something on their end, or an app update reset a setting, or someone enabled two-factor authentication without realizing what that does to third-party mail clients. The...

Zoho Mail IMAP Configuration: Exact Settings That Work First Time

Quick Summary Getting Zoho Mail IMAP to work in Outlook or Thunderbird is not as straightforward as Zoho's docs make it sound. The port numbers, SSL settings, and app password requirements catch almost everyone off guard the first time. Here are the exact settings and steps that actually work, without the back-and-forth with support. Photo by Fotis Fotopoulos on Unsplash Last month I spent almost two hours on a Friday afternoon helping a new employee get Zoho Mail working in Outlook. Two hours. The settings look simple on paper — and honestly, they are — but there are two or three specific things that Zoho just does not make obvious, and if you miss any one of them, you get a generic authentication error that tells you absolutely nothing useful. Sound familiar? The thing is, I've set up Zoho IMAP maybe forty times across different clients and different mail apps. Outlook, Thunderbird, Apple Mail, even some third-party Android clients. And every single time, someone new come...

์ด ๋ธ”๋กœ๊ทธ ๊ฒ€์ƒ‰

Magnesium Glycinate vs Magnesium Citrate: Which One Actually Fixed My Sleep

Quick Summary I spent months trying different magnesium forms after my sleep fell apart, and the difference between glycinate and citrate is way bigger than I expected Glycinate is the gentler, slower option great for sleep and anxiety, while citrate works faster but comes with some digestive surprises nobody warns you about If you're confused about which one to take, this breaks down exactly what each form does and who should actually be using it Photo by Anshu A on Unsplash About two years ago I hit a wall. I was waking up at 3am every single night, my legs felt restless, and I was grinding my teeth so bad my jaw hurt in the morning. My doctor ran some basic labs, everything came back "normal," and I left that appointment feeling completely dismissed. A friend of mine — she's really into functional nutrition — casually mentioned that I might just be magnesium deficient. I kind of rolled my eyes at first. It sounded like one of those wellness buzzwords people throw...
↑