jacktrades
jacktrades

Reputation: 7392

jQuery Autocompletion with Eclipse Juno Java EE

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.

Upvotes: 42

Views: 52753

Answers (4)

Kumar Abhishek
Kumar Abhishek

Reputation: 3134

I have used https://marketplace.eclipse.org/content/angularjs-eclipse Once you install this you can right click on your project , Configure to Angularjs project ,

And that's it.

Upvotes: 1

Jedaias Rodrigues
Jedaias Rodrigues

Reputation: 336

There is just something I have not seen anyone say.
If you already have a ready project, but when you created it did not using a javascript project, then you must convert your existing project.
Keep calm, because this conversion will not harm your existing project.

Right click on your project > Configure > Convert to javascript project

Ready! Now you can follow the step by step our friend up here did.
I believe this can really help beginners like me.

Upvotes: 0

Mayur Shah
Mayur Shah

Reputation: 1019

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.

Upvotes: 83

azerafati
azerafati

Reputation: 18603

Much simpler thanks to logic8 comment is to add it from

help > Install new software

and enter http://svn.codespot.com/a/eclipselabs.org/jsdt-jquery/updatesite

Tada!!

Upvotes: 11

Related Questions