Exclude file from search but not from the project list in WebStorm

8.3k views Asked by At

I've succeeded to exclude bower components and node modules from my search results by choosing the folder -> mark directory as -> excluded, but I couldn't do the the same for my concat file (a file with all code of the js files of my project).

How can I exclude this file from my search results?

3

There are 3 answers

2
lena On

Edit | Find | Find in Path supports scopes. You can create a new scope (Settings | Appearance & Behavior | Scopes) with the generated file excluded and use this scope for searching. Or, place your generated file(s) into a separate folder and exclude it like you did for bower_components and node_modules

Edit: since 2017.2 you can exclude files by pattern - see https://www.jetbrains.com/help/webstorm/2017.2/directories.html, Exclude files

0
mgalic On

You can exclude files and folders by name pattern. Just follow the steps here https://www.jetbrains.com/help/phpstorm/excluding-files-from-project.html#exclude-by-pattern

1
Artem Bogdan On

Man, use Preferences => Directories and thats it! enter image description here