jQuery Autocompletion with Eclipse Juno Java EE

jacktrades picture jacktrades · Jul 31, 2012 · Viewed 51.5k times · Source

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.

Answer

Mayur Shah picture Mayur Shah · Oct 15, 2012

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

1) Install the JSDT jQuery Integration plugin

enter image description here


2) Go to Project Explorer--> JavaScript Resources

enter image description here


3) Right click on it and go to properties.


4) Select "Add JavaScript library"

enter image description here


5) Select "jQuery Library"

enter image description here


6) You will get code completion as follows

enter image description here

Enjoy.