Automatically collapse the node_modules folder when switching focus to a file outside of it.
Press cmd+p
for macOS and ctrl+p
for Windows/Linux to launch VS Code Quick Open, paste the following command, and press enter.
ext install autocollapse-node-modules
The node_modules
folder will collapse automatically when navigating to a file outside of it in javascript/typescript projects, there is no command to run or action to be taken.
autocollapse-node-modules
was created by Shaun Harrison and is made available under the MIT license.