Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebStorm jQuery auto complete not working

After I installed WebStorm after formatting my computer the other day, jQuery auto-completion and code suggestion are not working. This software worked perfectly before, but now jQuery is not working. I tried reinstalling several times, but to no avail. This is the mouse-over notice for jQuery terms.

Unresolved function or method fadeOut()

like image 740
Kanchana Randika Avatar asked Jul 02 '11 13:07

Kanchana Randika


2 Answers

For code completion to work you need jQuery to be either under your project root or defined as global library (see Settings|JavaScript Libraries).

from someone who has recently come from eclipse, that is like a cup of water in a desert.

like image 97
NimChimpsky Avatar answered Sep 18 '22 07:09

NimChimpsky


You can enable jQuery code completion by adding it as a global library in Webstorm and phpStorm.

  • Go to Settings -> Languages & Frameworks -> Javascript and click on Libraries.
  • Click Download on the right side of the window.
  • Select Official libraries, select jQuery in the list and click download
  • jQuery would be enabled as a global library(shown below). Click Apply and ok.

enter image description here

like image 34
Siva Prakash Avatar answered Sep 22 '22 07:09

Siva Prakash