Question

When I try to click on some function in PhpStorm with a CRTL button the system tries to bring me to a definition of this function. Sometimes there are multiple definitions and the annoying page shows up telling to chose to which definition you want to go. Like here:

enter image description here

Because I am using grunt and minifing / concatenating results, the definitions is in multiple places. I know that I should ignore everything in node_modules, but the system does not. Is there a way for me to exclude some of the folders?

Was it helpful?

Solution

If you don't need any completion/navigation/etc. from your local node_modules, you can exclude this folder from your project:

right-click, Mark directory as/Excluded

You will still be able to run Grunt, but files in these folders won't be indexed and thus suggested for completion/navigation

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top