This Question is Answered

1 "helpful" answer available (2 pts)
3 Replies Last post: Feb 5, 2013 7:43 PM by Kirill Safonov  
Mike Suiter Newbie 17 posts since
Feb 4, 2013
Currently Being Moderated

Feb 5, 2013 7:02 PM

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...

Kirill Safonov JetBrains 584 posts since
Jul 9, 2009
Currently Being Moderated
Feb 5, 2013 7:13 PM in response to: Mike Suiter
Re: Should Resource roots exclude other folders?

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'.

 

Kirill

Kirill Safonov JetBrains 584 posts since
Jul 9, 2009
Currently Being Moderated
Feb 5, 2013 7:43 PM in response to: Mike Suiter
Re: Should Resource roots exclude other folders?

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"/>.

More Like This

  • Retrieving data ...