Exclude some folders from module declaration suggestions in PhpStorm

StackOverflow https://stackoverflow.com/questions/22555980

  •  18-06-2023
  •  | 
  •  

Вопрос

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?

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top