Should Resource roots exclude other folders?

I have added several resource roots to my project but also have to exclude all my other folders I don't want indexed. If this is the case, what is adding resource roots doing? Looking at the docs it appears it should tell the project my JavaScript source folders. It would be a lot easier to me to include a few folders rather than exclude a bunch...


Unfortunately help page is misleading here. What you need is to add several Content roots for the folders that should be part of your project. If you want to exclude something under these roots, click 'Exclude'.



Thanks for the quick reply. So does adding Resource roots do anything other than changing folder color? It would be a nice enhancement for it to be used to include sources folders which makes it cleaner than excluding a bunch.


Actually resource roots should correspond to the HTTP server configuration. This allows IDE to complete and validate paths for included resources, e.g. <img src="/some/path/a.png"/>.


Please sign in to leave a comment.