我无法将jQuery添加到WebStorm,为什么? [英] I can't add jQuery to WebStorm, why?

查看:535
本文介绍了我无法将jQuery添加到WebStorm,为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将jQuery添加到WebStorm(由JetBrains开发的IDE),但是它没有任何自动添加它的选项.我还尝试了从网站上下载jQuery并通过从磁盘安装插件"部分进行安装,但没有显示.

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.

我们将不胜感激.

推荐答案

jQuery只是一个库,因此您不需要完整的插件;它只是一个库.您需要做的就是...

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

  1. 转到设置"(或在Mac上为偏好设置")
  2. 转到语言和框架> Javascript>代码库
  3. 点击下载"
  4. 找到jQuery并选择它
  5. 点击下载并安装"

在那之后,jQuery变量(最显着的是$)在它们下面将不再有波浪线,并且您应该能够自动完成jQuery函数.而且,您希望Webstorm支持的任何其他Javascript库都几乎可以使用相同的基本模式(可下载库的列表非常全面).

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

这篇关于我无法将jQuery添加到WebStorm,为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆