Is there any way to separate the Javascript code completion for different modules?

I have an IntelliJ project with multiple modules - one (html/js mockups) is a plain Web module and the other is a Java/Webapp module.

Some of the javascript libraries are included in both places as they are used for both the mockup and the real application. Is there any way to get the code completion in each module to ignore the javascripts from the other module so it doesn't always show "duplicate declaration" when I try to middle-click and view the method in jQuery or one of the jQuery plugins that is in both places?

I looked around at file scopes but I couldn't figure out if there's a way to make that affect the code completion.

1 comment
Comment actions Permalink

I found that this is possible using the Javascript Libraries feature described here - if I categorize the jQuery files and plugins into different libraries, it seems to control the scope appropriately:


Please sign in to leave a comment.