10 VS Code Shortcuts That Will Save You 100+ Hours a Year
As developers, we spend hours every day battling code, debugging, and scrolling through files. But what if you could reclaim 30 minutes daily just by mastering a few keyboard shortcuts?
๐ 10 VS Code Shortcuts That Will Save You 100+ Hours/Year
(And Make You Look Like a Pro)
As developers, we spend hours every day battling code, debugging, and scrolling through files. But what if you could reclaim 30 minutes daily just by mastering a few keyboard shortcuts?
In this article, I’ll share 10 VS Code shortcuts that’ll turbocharge your workflow. These aren’t random tips — they’re battle-tested tricks I use every day to stay fast, focused, and efficient.
Let’s dive in! โก
1. Duplicate a Line
Shift + Alt + ↑/↓ (Win) | Shift + Option + ↑/↓ (Mac)
Use Case: Instantly duplicate lines without copy-paste
2. Multi-Cursor Magic
Ctrl + D (Win/Mac)
Use Case: Edit multiple matching words at once
3. Jump to Line Number
Ctrl + G → enter line number
Use Case: Navigate large files in seconds
4. Toggle Sidebar
Ctrl + B
Use Case: Maximize coding space instantly
5. Comment Code
Ctrl + /
Use Case: Quickly toggle comments while debugging
6. Quick File Search
Ctrl + P → type filename
Use Case: Jump between files instantly
7. Format Code
Shift + Alt + F (Win) | Shift + Option + F (Mac)
Use Case: Clean up messy code instantly
8. Terminal Toggle
Ctrl + `
Use Case: Switch from editor ↔ terminal instantly
9. Rename Symbol
F2
Use Case: Safely rename variables/functions everywhere
10. Zen Mode
Ctrl + K → Z
Use Case: Enter distraction-free coding mode
๐ TL;DR
- Use Ctrl + D for multi-editing
- Master F2 for refactoring
- Use Ctrl + P for fast file jumps
- Try Ctrl + K Z for deep focus
Want More Coding Tips?
Follow @learn_with_san for:
๐ Code hacks • ๐ก Career tips • ๐งต Dev threads