VS Code Shortcuts That Will Save You 2 Hours a Day
Von Salty Deprecated Software Engineer
Dieser Artikel wurde mit KI-Unterstützung erstellt und von unserem Team auf Richtigkeit und Qualität geprüft. Alle technischen Informationen und Beispiele wurden verifiziert.
I timed myself one day. In an 8-hour coding session, I spent 47 minutes just reaching for the mouse — navigating files, selecting text, switching tabs, opening terminals. That's almost an hour of my day gone to moving a cursor around the screen.
VS Code keyboard shortcuts fix this.Not all 500+ of them — just the 20 that cover what you actually do every day. Learn these over one week and you'll physically feel faster.
The 10 You Need Today
Mac shortcuts shown first, Windows/Linux in parentheses.
| Shortcut | What It Does | Time Saved |
|---|---|---|
| Cmd+P (Ctrl+P) | Open any file by name | Huge — no more clicking through folders |
| Cmd+Shift+P (Ctrl+Shift+P) | Command Palette — search any action | Access any VS Code feature without menus |
| Cmd+D (Ctrl+D) | Select next occurrence of word | Rename variables in seconds |
| Cmd+Shift+L (Ctrl+Shift+L) | Select ALL occurrences | Bulk rename everywhere at once |
| Alt+Up/Down | Move line up/down | Rearrange code without cut/paste |
| Cmd+Shift+K (Ctrl+Shift+K) | Delete entire line | No more select-all-then-delete |
| Cmd+/ (Ctrl+/) | Toggle comment | Comment/uncomment instantly |
| Cmd+` (Ctrl+`) | Toggle integrated terminal | No more switching to another app |
| Cmd+B (Ctrl+B) | Toggle sidebar | More screen space when coding |
| Cmd+Shift+F (Ctrl+Shift+F) | Search across all files | Find anything in your codebase |
The 10 Power Moves
| Shortcut | What It Does |
|---|---|
| Cmd+Shift+E (Ctrl+Shift+E) | Focus file explorer |
| Alt+Click | Add cursor at click location (multi-cursor) |
| Cmd+L (Ctrl+L) | Select entire line |
| Shift+Alt+Down (Shift+Alt+Down) | Duplicate line below |
| Cmd+Shift+[ (Ctrl+Shift+[) | Fold (collapse) code block |
| Cmd+K Cmd+0 (Ctrl+K Ctrl+0) | Fold all — see file structure at a glance |
| F2 | Rename symbol (refactor across files) |
| F12 | Go to definition |
| Cmd+Shift+\ (Ctrl+Shift+\) | Jump to matching bracket |
| Cmd+K Z (Ctrl+K Z) | Zen Mode — distraction-free coding |
5 Must-Have Extensions
- Error Lens — Shows errors and warnings inline, right next to the code. No more hovering over red squiggles. This is the single highest-impact extension for any language.
- GitLens — Shows who changed each line and when (inline blame), plus full file history and comparison views. Essential if you work with a team.
- Prettier — Auto-formats your code on save. Never argue about tabs vs. spaces again. Set it up once, forget about formatting forever.
- Thunder Client — API testing inside VS Code. No more switching to Postman. Supports collections, variables, and scripting.
- GitHub Copilot — AI autocomplete that's now free for individual developers. Completes functions, suggests tests, explains code. Saves 30-40 minutes/day on repetitive code.
The Learning Strategy
Don't try to memorize all 20 shortcuts at once. Here's the plan:
- Day 1-2: Cmd+P, Cmd+Shift+P, Cmd+D (the three that change everything)
- Day 3-4: Alt+Up/Down, Cmd+Shift+K, Cmd+/ (editing speed)
- Day 5-7: Terminal toggle, sidebar toggle, search across files
- Week 2: Multi-cursor, fold/unfold, F2 rename, F12 go to definition
Print the cheat sheet table above and tape it next to your monitor. After two weeks, you won't need it.
Looking for more developer productivity tools? Read 10 Command Line Tools That Will 10x Your Productivity and check out our Cursor AI review.
Geschrieben unter dem redaktionellen Pseudonym von The IT Hustle — über 25 Jahre als Laptop-Techniker, Systemadministrator, Storage-Ingenieur und Softwareentwickler, heute im Betrieb von KI-Agenten. Jeder Beitrag wird vor der Veröffentlichung von einem Menschen geprüft; Details in den Redaktionsrichtlinien.
Immer auf dem Laufenden
Als Erster über neue Tools, Blogbeiträge und Updates informiert sein. Kein Spam.
Eigene Anti-Halluzinations-Prompts generieren
Unsere AI Prompt Engine nutzt proprietäre Technologie, um Prompts mit integrierter Verifikation und Widerspruchstests zu generieren.
3 kostenlose Generierungen testen →