Webstorm is pretty good for Angular Development (I only have a few qualms); but one behavior that’s annoying is that it searches all folders in a directory when looking for usages.
For instance, in the Jewelbots App repo if I search for files named controllers.js, I get both app\ references and www\ references:
But in this setup, www is really just an output directory. When I run grunt build; that’s where all the files go for deployment. So it doesn’t actually help me to search there.
It turns out, there is a way to ignore or exclude certain folders from search:
- Right click directory you want to exclude
- Go to “Mark Directory as”.
- Choose “Excluded”
Now when you search, files in that directory won’t show up in the results: