总觉得想写点js代码。写javascript吧eclipse支持,但现在流行jquery,我就在想怎么才能eclipse支持jquery函数自动提示功能,省的每次总是去翻看文档。
今天终于找到了这个插件。名字是 jquery wtp
下载地址是:http://www.langtags.com/jquerywtp/?page_id=11。这个是官网的地址。
下面是集成到eclipse中步骤
也是官网中的步骤,英文很简单,就不翻译了,不会的自己有道。
- step1:download jqueryWTP_version.jar
- step2:find you Eclipse Plugin org.eclipse.wst.jsdt.core_version.jar,backup the plugin.
- step3:double click the jar file or run with command java -jar jqueryWTP.version.jar
- step4:on the opened swing UI,choose org.eclipse.wst.jsdt.core_version.jar,and output dir.
- step5:click generate button.
- step6:replace old org.eclipse.wst.jsdt.core_version.jar file with the generated file.
- step7: delete directory workspace/.metadata/.plugins/org.eclipse.wst.jsdt.core
- step8:start eclipse.
- step9:open a html file or a js file,edit js content.
org.eclipse.wst.jsdt.core_version.jar 是找不到的。
之后就可以了。
下面上图