zoomZoom
zoomZoom

Reputation: 339

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

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?

Upvotes: 16

Views: 9681

Answers (3)

Artem Bogdan
Artem Bogdan

Reputation: 107

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

Upvotes: 1

mgalic
mgalic

Reputation: 1889

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

Upvotes: 6

lena
lena

Reputation: 93868

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

Upvotes: 19

Related Questions