Features Tutorials WebStorm

New in 4.0: Easier JavaScript Library Scope Configuration

As you may know from the previous post about JavaScript libraries in PhpStorm & WebStorm, the main benefit of specifying JavaScript libraries in your project is to populate a completion list with only relevant members. We have reorganized the configuration panel at Settings|JavaScript|Libraries, so it hopefully become easier to use.

If you simply want to select a library for the whole project, check the corresponding box. For more complex library scopes configuration, click Manage Scopes… button.

Also, for per-file scopes settings, you can use JavaScript file context menu triggered by right-clicking in the editor. Note that some items are disabled because their scope is set at upper level (project or directory).

Try out latest PhpStorm & WebStorm 4.0 EAP. We’d appeciate to hear responses from you in our issue tracker ;).