Getting Webstorm to ignore output folders

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:
Screen Shot 2015-07-23 at 11.23.26 AM
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”

Screen Shot 2015-07-23 at 11.25.10 AM
Now when you search, files in that directory won’t show up in the results:
Screen Shot 2015-07-23 at 11.26.18 AM

Leave a Reply

Your email address will not be published. Required fields are marked *