Eclipse安装插件支持jQuery智能提示

最近工作中用到jQuery插件,需要安装eclipse插件才能支持jQuery智能提示,在网上搜索了一下,常用的有三个插件支持jQuery的智能提示:

1.jQueryWTP

2.Spket

3.Aptana

本文介绍Spket的在线安装方法

1.在线安装:Help->InstallNewSoftware...->Add...->Name:"Spket",

Location:http://www.spket.com/update/下载完毕重启Eclipse.

2.手动安装:到http://www.spket.com/download.html下载Plugin版本,当前版本为1.6.17.下载解压后直接放置于Eclipse的dropins目录下,重启Eclipse.

3.下载jQuery文件,(要下载开发版本).

4.设置spket,Window->Preferences->Spket->JavaScriptProfiles->New,输入“jQuery”点击OK;选择“jQuery”并点击“AddLibrary”然后在下拉条中选取“jQuery”;选择“jQuery”并点击“AddFile”,然后选中你下载的jQuery.js文件;设成Default;

5.设置js打开方式(这一步很重要,不设置的话,也不会有jQuery的智能提示),Window->Preferences->General->Editors->FileAssociations->选择*.js,将SpketJavaScriptEditor设为Default。

6.新建一个js文件,jQuery自动提示!

相关推荐