External libraries / resource?

I have some libraries that I would like to reference across all projects (jQuery, lQueryUI, etc...) so I can have intellisense, how do I set them?

When I go to Settings and select Resources, it allows me to add multiple external resources, but as soon as I close & reopen WebStorm, only the last resource remains! I'm not sure if I'm doing it correctly or not.

Thanks,
Kenny.

4 comments

By the way, I'm pretty new to WebStorm (been using Visual Studio 2005/2008/2010 all my life), so I might be missing something here: Is there a way to turn-on IntelliSense/Auto-Complete automatically, without I have to press Ctrl+Space all the time?

Thanks.

0

Hi Kenny,

I'm not familiar with WebStorm (I'm using PhpStorm, which is very similar) and will not be able to properly help you with your first question. I know one way wich will definitely work (very likely may not be the best) -- is to simply include the library into a project (for example into separate folder, which then can be exluded when deploiyng your site to a live server). And yes (to the best of my knowledge) -- there are no functionality in WebStorm/PhpStorm to include library reference for all projects at once-- it has to be done on per project basis.

As for the second question -- which version do you use?

  • if you are using v1 -- then the only way to invoke autocompletion automatically is to install a plugin (File | Settings | Plugins) -- in particular "Extended Code Sense" (it's listed on  "Available" tab - select, press install and restart app) -- you can configure this plugin's settings later in File | Settings | Extended Code Sence
  • if you are using EAP version (v2 beta) -- then such functionality was just added in most recent build and you can configure it in File | Settings | Editor | Code Completion (the default settings are setup to pop-up automatically)
0

Hi Andriy,

I'm using v.1 (trial) to see if I like it or not (like I've said, I've been using Visual Studio all my life and loved the ReSharper plugin for VS), I will install the Extended Code Sense plugin and see how that turns out. Beside that, I'm starting to like how WebStorm works, not sure what v.2 will be offering, but I will probably make my purchase soon.

Thanks.

0

Hi Kenny,

You can grab and try the latest EAP build (v2 beta) from here: http://confluence.jetbrains.net/display/WI/Web+IDE+EAP. It comes with 45-days license (which will be extended with each new EAP build) and can be installed separately, so you can evaluate both versions. Please note, because of beta status of such build, the bugs (as well as new features) are expected which may affect/or may not your work.

0

Please sign in to leave a comment.