Published: Feb 07, 2025 Programming Tips

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 just random tips—they’re battle-tested tricks I use daily to code faster, reduce context-switching, and keep my focus razor-sharp.

 

Let’s dive in!

1. Duplicate a Line

Shift + Alt + ↑/↓ (Win) | Shift + Option + ↑/↓ (Mac)

Use Case: Instantly duplicate code blocks without copy-paste

Pro Tip: Combine with multi-cursor editing for bulk modifications

2. Multi-Cursor Magic

Ctrl + D (Win/Mac)

Use Case: Edit multiple instances of the same text simultaneously

3. Jump to Line Number

Ctrl + G → Type line number

Use Case: Quickly navigate to specific lines in large files

4. Toggle Sidebar

Ctrl + B (Win/Mac)

Use Case: Maximize screen space when focused on coding

5. Comment Code

Ctrl + / (Win/Mac)

Use Case: Quickly toggle comments during testing/debugging

6. Quick File Search

Ctrl + P → Type filename

Use Case: Find files in large projects within seconds

7. Format Code

Shift + Alt + F (Win) | Shift + Option + F (Mac)

Use Case: Automatically clean up messy code formatting

8. Terminal Toggle

Ctrl + ` (Backtick key)

Use Case: Switch between code and terminal instantly

9. Rename Symbol

F2

Use Case: Safely rename variables/functions across entire project

10. Zen Mode

Ctrl + KZ

Use Case: Distraction-free coding environment

Pro Tip: Combine with dark theme for optimal focus

? TL;DR

  • Use Ctrl + D for multi-edits
  • Master F2 for safe refactoring
  • Learn Ctrl + P for quick navigation
  • Try Ctrl + K Z for deep focus

Want More Coding Tips?

Follow @learn_with_san on Twitter for daily:

? Code hacks • ? Career advice • ? Tutorial threads

Buy Me A Coffee