jQuery Autocompletion with Eclipse Juno Java EE
Asked Answered
C

4

42

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.

Cliffcliffes answered 31/7, 2012 at 1:22 Comment(6)
marketplace.eclipse.org/content/jsdt-jqueryQuestionable
actually ignore that link, it does afaik nothing what-so-ever. intellij gets jquery support out of th ebox :-(Questionable
did you ever find a decent solution for this ?Questionable
lol, I thought about it. Maybe I should too ...Questionable
I'm not sure how useful this would be but this looks promising <code.google.com/a/eclipselabs.org/p/jsdt-jquery/wiki/…>Cadmann
this link is broken code.google.com/archive/a/eclipselabs.org/p/jsdt-jquery/wikis/…> Use this link code.google.com/archive/a/eclipselabs.org/p/jsdt-jqueryBithia
R
83

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.

Rainarainah answered 15/10, 2012 at 9:13 Comment(4)
Has anyone had this problem: $(). brings up the autocomplete list but jQuery(). does not. It should work for both. I've even tried adding the library with the "no conflict" option checked and in this case, neither methods work.Turtleneck
@Mandar Deshpande Thanks it worked bro. Can you tell if I want a code assist for backone.js, Is that there eclipse????Asher
@NikhilAgrawal: As the Backbone.js is released just 3 years ago and it is not that much popular, eclipse has not released the auto-complete feature for that till now. I will provide a update here as soon as i get to know about that feature.Rainarainah
The link to JSDT jQuery is 404 now.Encarnacion
G
11

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!!

Geneviegenevieve answered 17/5, 2014 at 12:59 Comment(0)
P
1

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.

Pacifism answered 16/2, 2016 at 4:33 Comment(1)
That is nothing about jQuery??Encarnacion
T
0

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.

Thebaid answered 1/6, 2015 at 19:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.