Kanchana Randika
Kanchana Randika

Reputation: 546

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()

Upvotes: 8

Views: 8657

Answers (2)

Siva Prakash
Siva Prakash

Reputation: 4997

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

Upvotes: 9

NimChimpsky
NimChimpsky

Reputation: 47280

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.

Upvotes: 11

Related Questions