DEV Community

Ramkumar M N
Ramkumar M N

Posted on

VS Code Hidden Features 🎉

VS Code is packed with features, but many developers don’t take full advantage of them. In this post, I'll share some hidden tricks that can boost your productivity and streamline your workflow.

1. Multi-Cursor Magic

Ever needed to edit multiple lines at once? Use multi-cursor mode:

  • Press Alt + Click (Windows/Linux) or Option + Click (Mac) to place multiple cursors.
  • Or, use Ctrl + D (Cmd + D on Mac) to select the next occurrence of a word.

2. Move Lines Up or Down Without Copy-Pasting

Instead of cut-pasting lines, use:

  • Alt + Up/Down Arrow (Windows/Linux)
  • Option + Up/Down Arrow (Mac)

3. Open the Integrated Terminal Faster

Skip the mouse and open the terminal with:

Ctrl + `
Enter fullscreen mode Exit fullscreen mode

This brings up the built-in terminal instantly.

4. Quick File Switching

Jump between files without touching the mouse:

  • Ctrl + P (Cmd + P on Mac) opens the file search.
  • Just type part of the filename and hit Enter.

5. Peek and Edit Files Without Opening Them

Need to check a function definition quickly?

  • Hover over a function and press Alt + F12 (Windows/Linux) or Option + F12 (Mac).
  • This opens an inline preview without switching tabs.

6. Auto-Fix Errors with One Command

Instead of manually fixing code issues, let VS Code do it for you:

Ctrl + . 
Enter fullscreen mode Exit fullscreen mode

This suggests quick fixes based on linting errors.

7. Navigate Between Code Blocks Easily

Jump between methods, functions, or classes using:

  • Ctrl + Shift + O (Cmd + Shift + O on Mac)
  • Type @ to list symbols and jump instantly.

8. Zen Mode for Distraction-Free Coding

Want to focus? Enter Zen Mode with:

Ctrl + K Z
Enter fullscreen mode Exit fullscreen mode

Press the same keys again to exit.

9. Drag and Drop for Easy Terminal Navigation

Need to type a long file path in the terminal? Just drag and drop the file into the terminal, and its full path appears automatically.

10. Use Extensions Like a Pro

Some must-have VS Code extensions to boost productivity:

  • GitLens – Supercharge Git in VS Code.
  • Bracket Pair Colorizer – Easily match brackets.
  • TabNine – AI-powered autocompletion.
  • Live Server – Instantly preview HTML changes.

Final Thoughts

VS Code is full of hidden gems that can save you time. Try these tricks and let me know which one is your favorite!


Top comments (6)

Collapse
 
anmolbaranwal profile image
Anmol Baranwal

I know most of these except for Zen Mode :)

Collapse
 
ramkumar-m-n profile image
Ramkumar M N

Hi Anmol,
Thanks for sharing your feedback. I will try to add more useful options in this thread.

Regards,
Ram

Collapse
 
himanshu_code profile image
Himanshu Sorathiya

Are this hidden features?, most of them were easily known. But still good.

And for terminal, there's also ctrl + j.

Collapse
 
ramkumar-m-n profile image
Ramkumar M N

Hi Himanshu,
Thanks for your feedback. I’m sorry if the title felt misleading to you.

It’s great that you already know these features. I shared them because some people might still find them useful.

I will be adding more such options, it may help you.

Regards,
Ram

Collapse
 
webdeveloperhyper profile image
Web Developer Hyper

Thank you!📝
I only knew some of the extensions on the list.

Collapse
 
ramkumar-m-n profile image
Ramkumar M N

it’s hard to know them all, At time it save our time. I hope it’s useful 🙌