Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't add jQuery to WebStorm, why?

I want to add jQuery to WebStorm (IDE by JetBrains), but it doesn't have any option to add it automatically. I also tried downloading jQuery from the website and installing it through the "Install Plugin from Disk" section, but it doesn't show up.

Nothing here

Or here

Help would be appreciated.

like image 700
Senpai Saitama Avatar asked Dec 30 '16 19:12

Senpai Saitama


People also ask

How do I add a library to WebStorm?

Press Ctrl+Alt+S to open the IDE settings and select Languages & Frameworks | JavaScript | Libraries. On the Settings: JavaScript Libraries page that opens, click Download and in the Download Library dialog that opens, select the required library, and click Download and Install.

What is JetBrains WebStorm used for?

WebStorm is an integrated development environment for JavaScript and related technologies. Like other JetBrains IDEs, it makes your development experience more enjoyable, automating routine work and helping you handle complex tasks with ease.


1 Answers

jQuery is just a library, so you don't need a full plug-in for it; all you need to do is ...

  1. Go to Settings (or Preferences on a Mac)
  2. Go to Languages & Frameworks > Javascript > Code Libraries
  3. Click "Download"
  4. Find jQuery and select it
  5. Click "Download and Install"

After that jQuery variables (most notably $) should no longer have squiggly lines under them, and you should be able to auto-complete jQuery functions. And that same basic pattern should work for pretty much any other Javascript library that you want Webstorm to support (the list of downloadable libraries is fairly comprehensive).

like image 156
machineghost Avatar answered Oct 31 '22 00:10

machineghost