且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jQuery自动完成与Eclipse Juno Java EE

更新时间:2023-09-26 19:51:22

我在Juno中完成了jQuery代码。只需按照以下步骤操作:



1)安装 JSDT jQuery集成插件








2)转到项目资源管理器 - > JavaScript资源








3)右键单击并转到属性。






4)选择添加JavaScript库








5)选择jQuery库









享受。


I've read several DATED information on how to enable jQuery (specially auto completion) support for Eclipse. Either using Aptana or other plugins.

I've tried Aptana 3 version plugin, but I get nothing but problems.

Can someone please explain on how to achieve this?

Maybe nowadays there are better options from Aptana.

Tried with Eclipse Indigo and Helios, and still Aptana Web tools pkg. does not work.

I got the jQuery code completion in Juno. Just follow the following steps:

1) Install the JSDT jQuery Integration plugin


2) Go to Project Explorer--> JavaScript Resources


3) Right click on it and go to properties.


4) Select "Add JavaScript library"


5) Select "jQuery Library"


6) You will get code completion as follows

Enjoy.