Select JavaScript | Libraries | Add… and add the files or folders you need. How to set up JavaScript library in WebStorm/PhpStorm These settings will be stored in the project file, so you can share it via your VCS to other members of your project, so that they will be ready-to-go just by checking out project files. Let’s say we have jCrop and jQuery in our project.Įxample1.js uses only jCrop because we specifed at project-level that we use this library for the whole project (and thus we may need autocompletion for jCrop in any file).Įxample2.html will use jQuery and jCrop so autocompletion will be available for both libraries. In the example below we have two libraries defined for our project. Now, in Settings | Project settings you can specify the JavaScript Libraries that should be used for each file/folder or for the whole project - in other words, their Usage Scope. Starting from WebStorm/ PhpStorm 2.0 we include a new feature that deals with this very issue. “set”, you’ll still end up with about 200 functions starting with “set”. Even if you use just a few JavaScript libraries in your project like jQuery, Ext JS and MooFX, you can get up to 4,000 autocompletion hints for Document object coming from all those libraries! And even when you type e.g. This may lead to a long and almost unusable completion list. Those of us who work a lot with JavaScript often face a small issue with Autocompletion which turns to be not a small issue but a big mess.īy default, completion works for all JavaScript files located under your project root.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |