Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way that node_modules folder do not expand unecessarily when cmd+click on code in vscode?

When i do cmd+click on something in the code the node_modules folder gets expanded and in order to close it need to go all the way back to the top of that folder which is very annoying.Is there an way to avoid this?

like image 499
vagdevi Avatar asked Dec 02 '25 16:12

vagdevi


1 Answers

What I usually do is hiding the node_modules from my sidebar..

Go to: File > Preferences > Settings

Search for files:exclude

And fill up the Exclude pattern with node_modules/ and hit OK

This way, I don't need to turn off the auto reveal functionality

like image 177
George Neto Avatar answered Dec 04 '25 08:12

George Neto



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!