Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
112 views
in Technique[技术] by (71.8m points)

javascript - 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.

question from:https://stackoverflow.com/questions/11731884/jquery-autocompletion-with-eclipse-juno-java-ee

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...