I'm trying to add libraries to "External Libraries". I've added them in Setting -> Javascript -> Libraries
and they are highlighted now as "(library home)", but they are not added to external libraries which allows code inspection and TODO's to work for them.
What is the difference between "library home" and "External Libraries" and how do I make a library external?
Press Ctrl+Alt+S to open the IDE settings and select Languages & Frameworks | JavaScript | Libraries. On the Settings: JavaScript Libraries page that opens, click Add. The New Library dialog opens. , and choose Attach File or Attach Directory from the list.
From the main menu, select File | Project Structure | Project Settings | Modules. Select the module for which you want to add a library and click Dependencies. button and select Library. In the dialog that opens, select a project or a global library that you want to add to the module.
PHPStorm incorporates all the functionality that WebStorm comes equipped with (CSS, JavaScript HTML), PLUS full-fledged PHP support (and databases support).
In PhpStorm the stuff listed under External Libraries branch will include:
Settings | PHP | Include paths
(folders that are not part of the actual project but still referenced for code completion: e.g. libraries installed globally).Quite likely it's the same here in WebStorm for JavaScript libraries: global npm modules or whatever. So I guess when you reference a library that is physically located outside of the project, it should be listed there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With