π§οΈ Introduction
Visual Studio Code has been de facto choice of front-end development.
What do you usually use for front-end development? NPM packages.
π€ Problem
As you are navigating JavaScript code, you are bound to stumble upon a code in node_modules
folder.
And Itβs a pain π to scroll all the way up and close it.
So how do you quickly close node_modules
folder?
π TL;DR
Press and hold down the β¬ οΈ left arrow key.
Yeah, seriously thatβs it.
It works in Windows Explorer and Atom, as well.
Here is the live action.
This will save you at most 5~10 seconds but it will add up.
I've been stuck in node_modules
folder hell so many times and decided to share this tip.
The post Keyboard shortcut to get out of node_modules folder in Visual Studio Code appeared first on Slight Edge Coder.
Top comments (14)
My way of dealing with
node_modules
is to tell Visual Studio Code to totally ignore it in the Explorer: stackoverflow.com/a/33277809/4186181Thanks @rhymes .
VS Code is like onion. The more you know, there is more to know :p
ahhahah
Thank you !
I've just discovered this also works in Atom too!! π Thanks for sharing!
Oh sweet.
Thank you for checking out Atom @Claire.
Updated the post to include
Atom
in the list :)Sweet trick!
Have you consider submitting to vscodecandothat.com/?
I am sure Burke Holland and Sarah Drasner would like this one!
Thank you Jose,
That page is amazing.
I will look how to submit to the site :)
Ah! That was trick question right?
Cuz'
node_modules
is a black-hole.Hence you can't get out!.
Yasss I got it!!
This solves my pain, thank you.
Glad to be of help π
In webstorm you just press left arrow key and it will jump to parent folder. Sometimes you may need to press it few times but thatβs quick enough.
Thankd Eduard.
It seems like left arrow key works in many editors.
It works in Visual Studio (not code) and SQL Server Management Studio as well :)
Changed my life. π
So simple that I don't know why I was not able to find it out by myself.
Thanks from my lazy brain for sharing this π