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

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

Photo by Billy Joachim on Unsplash

So I was pair programming with a junior dev last year, and every time he wanted to rename a variable, he'd manually highlight each one and retype it. Every. Single. One. I watched him do this for like three occurrences before I leaned over and hit F2 and renamed all of them at once in about half a second. The look on his face was priceless. That moment reminded me that VS Code keyboard shortcuts aren't just a "nice to know" thing — they're the difference between feeling like you're fighting your editor and feeling like it's actually working with you.

I've been using VS Code daily for years now, and I still occasionally stumble onto something I didn't know existed. So let's skip the absolute basics (yes, everyone knows Ctrl+S saves) and get into the stuff that genuinely changes how fast you work.

Multi-Cursor Editing Is Underused and Incredibly Powerful

Most people know you can hold Alt and click to place multiple cursors. That's fine. But what most people miss is Ctrl+D — it selects the next occurrence of whatever word your cursor is on. Hit it three times and you've got three cursors, each on the same variable name. Now type and you're editing all three at once. Way faster than find-and-replace for small, scoped changes.

Even better: Ctrl+Shift+L selects ALL occurrences in the file at once. Combined with F2 for symbol renaming (which works across files in your project, not just the current one), you've got two different tools for two different jobs. F2 when you need cross-file, language-aware renaming. Ctrl+Shift+L when you just need dumb text matching in the current file fast.

The Command Palette Is Your Best Friend

Honestly, if there's one habit worth building, it's reaching for Ctrl+Shift+P (or Cmd+Shift+P on Mac) before anything else when you don't know a shortcut. The Command Palette searches everything — settings, commands, extensions, even recently opened files. I use it probably 40+ times a day without thinking about it.

Here's an insider trick though: if you hit Ctrl+P instead, you get quick file open. But if you type @ inside that same prompt, it turns into a symbol navigator for the current file. And if you type : followed by a number, it jumps to that line. So Ctrl+P then :142 gets you to line 142 instantly. Much faster than scrolling, and faster than Ctrl+G (though that works too).

Navigation Shortcuts That'll Change How You Move Around Code

This one I genuinely didn't discover until maybe year three of using VS Code, which is embarrassing: Ctrl+Tab cycles through open editor tabs, but Alt+Left and Alt+Right navigate your cursor history — like a browser's back and forward buttons, but for your code. Clicked into a function definition to check something? Hit Alt+Left and you're back where you were. No hunting through tabs.

Speaking of definitions — F12 goes to a symbol's definition, but Alt+F12 opens it in a peek window inline without leaving your current spot. That's massive when you're deep in debugging and just want to quickly check what a function does without losing your place.

And for moving between problems in your code, F8 jumps to the next error or warning. You don't need to squint at the Problems panel. Just keep hitting F8 and fix as you go.

The Terminal Shortcut People Forget Exists

I've watched developers minimize VS Code, go to a separate terminal window, run a command, then come back. Every time I see it I age slightly. Ctrl+` (that's the backtick key) toggles the integrated terminal. Open it, close it, open it again — same keystroke. And if you need multiple terminal instances, Ctrl+Shift+` creates a new one.

Reformatting and Cleanup Shortcuts

This depends a bit on your formatter setup, but Shift+Alt+F formats the entire document. If you've got Prettier or ESLint hooked in, this runs it immediately. No right-clicking, no hunting through menus. On Mac it's Shift+Option+F.

Here's a lesser-known one: Ctrl+K Ctrl+F formats only the currently selected code. Useful when you don't want to reformat a whole file someone else touched — keeps your git diff clean. I've seen this save awkward conversations in code review more than once.

One Insider Trick Most People Skip: Custom Keybindings

VS Code's default shortcuts are solid, but you can override anything. Hit Ctrl+K Ctrl+S to open the Keyboard Shortcuts editor. From there you can search by command name and reassign to whatever feels natural. I personally remapped editor.action.copyLinesDownAction to something easier to hit — the default Shift+Alt+Down always felt awkward to me.

You can also edit the raw keybindings.json directly if you prefer. Something like this:

[
  {
    "key": "ctrl+shift+d",
    "command": "editor.action.copyLinesDownAction",
    "when": "editorTextFocus"
  }
]

Just be aware of conflicts — VS Code will warn you if you're stomping on something else, but it won't stop you.

Quick Reference for Everything Above

Rather than scatter these across a cheat sheet you'll never find again, here's the condensed version in one place:

  • Ctrl+D — select next occurrence
  • Ctrl+Shift+L — select all occurrences
  • F2 — rename symbol across project
  • Ctrl+Shift+P — Command Palette
  • Ctrl+P then :142 — jump to line 142
  • Alt+Left / Alt+Right — navigate cursor history
  • Alt+F12 — peek definition inline
  • F8 — jump to next error/warning
  • Ctrl+` — toggle integrated terminal
  • Shift+Alt+F — format document
  • Ctrl+K Ctrl+F — format selection only
  • Ctrl+K Ctrl+S — open keyboard shortcuts editor

The shortcuts that stick are the ones you reach for when you actually need them, not the ones you memorized from a list. So pick two or three from here that match something you do constantly, and just use those for a week. They'll become muscle memory faster than you'd expect. Hope this saves you some time — and maybe a few gray hairs in code review.

Related: VS Code Tips and Tricks That Actually Save You Time (No Fluff)

๋Œ“๊ธ€

Mojang Session Servers Down? Here's Why You Can't Log Into Minecraft Right Now

Photo by Patrik Kernstock on Unsplash So you sit down to play some Minecraft, probably after a long day, maybe you've got friends waiting in a server lobby, and you get smacked with this: Failed to connect to the server. Error: Authentication servers are down for maintenance. Or sometimes it shows up as: Failed to login: Invalid session (Try restarting your game and the launcher) Yeah. The Mojang session servers are down, or at least they're not talking to your game properly. I've seen this come up constantly in forums and Discord servers whenever there's a Mojang outage, and the frustrating part is — half the time people don't even realize it's not their fault. Here's what's actually going on. Why This Happens Minecraft doesn't just let you waltz into a multiplayer server. Every time you connect, your client reaches out to Mojang's session servers at session.minecraft.net to verify you...

what is art therapy AI painting checker Introducing the AI HTP Test Site: A New Era in Art Therapy

 #what is art therapy #art therapy activities   AI Art Above is the AI ​​picture psychological test. Below is the AI ​​HTP tree human house test.  Psychotherapy test AI Art Psychotherapy HTP test Introducing the AI HTP Test Site: A New Era in Art Therapy What Is HTP? HTP (House-Tree-Person) is a well-known projective drawing test commonly used in art therapy and psychological evaluation. Participants draw a house, a tree, and a person, and mental health professionals interpret these drawings to gain insights into the individual’s emotional state, personality traits, and underlying issues. AI Meets HTP Thanks to advancements in artificial intelligence, the HTP test has evolved. Our AI HTP Test Site allows you to upload your drawings and receive a detailed, automated analysis. The system evaluates various elements—line thickness, spatial arrangement, color usage, and more—to provide immediate, data-drive...

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

Zoho Mail IMAP Not Working: Every Fix I've Actually Used

Quick Summary Zoho Mail IMAP stops working for the dumbest reasons - wrong port, 2FA blocking app passwords, or DNS that looks fine but isn't. I've fixed this across Outlook 2016, iPhones, Android, and Mac Mail, and the root cause is almost always one of four things. Here's the exact step-by-step with real menu paths so you're not clicking around for two hours like I was the first time. Photo by Juanjo Jaramillo on Unsplash It was a Monday morning. One of our sales guys walks up and says his Outlook stopped pulling emails from Zoho. Just stopped. Overnight. Nothing changed - or so he said. Checked his machine, checked the account settings, everything looked right on the surface. Port 993, SSL enabled, correct email address. And yet. Nothing. Here's the thing - Zoho Mail IMAP issues have this annoying pattern where the settings look correct but something underneath is broken. Could be an app password that got invalidated when someone toggled 2FA. Could be IMAP ac...
↑