Search code examples
webstorm

Ignore node_modules in Webstorm when using navigation pop-up


Is it possible to ignore searching the node_modules folder when using WebStorm's navigation pop-up window (Command + Shift + N)?

This makes it really annoying when wanting to quickly navigate to, for example, the package.json file.


Solution

  • To exclude the directory from being searched via navigation pop-up, pick node_modules directory in Project view, then from mouse context menu:

    Mark Directory As -> Excluded

    enter image description here

    Directory could be restored via Preferences->Directories->Excluded Folders settings