Use this context menu to quickly hide node_module dependencies. This also provides the option to only show the dependencies listed in a package.json file.
Right click on any node_modules/
directory in the Visual Studio Code Explorer for the available options.
Select this option to hide the entire node_modules/
directory and all of its sub-directories.
Select this option to hide any sub-directories under the node_modules
directory if they are not listed under dependencies
and devDependencies
in the package.json
file.
If the only dependency you have listed in package.json is express
, then chalk
will be hidden.
my-app-dir/
|- src/
|- node_modules/
| |- chalk/ <- will be hidden
| `- express/
|
`- package.json