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
354 views
in Technique[技术] by (71.8m points)

Aptana Plugin for Eclipse and jQuery code assist

I want to use autocomplete for jQuery in Eclipse. The Aptana Plugin is installed:

Aptana Web Development Tools
Version: 1.5.1.25495-787Y07jbcbrChz-Tq2k383275

Support for jQuery also:

Aptana Support for jQuery
Version: 1.3.2.00005

JavaScript/WTP is installed:

JavaScript Developer Tools
Version: 1.1.1.v200906091427-77-FGBCcNBC-BeMcEeOm
Build id: 20090616035105

But the autocomplete doesn't work. Does anyone have an idea of where the problem could be?

See Question&Answers more detail:os

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

1 Reply

0 votes
by (71.8m points)

Turn on JavaScript Code Assist Feature

When you install additional AJAX library support the Code Assist for that library isn't turned on by default.

To turn on the Code Assist feature after you install additional AJAX Libraries:

Preferences > Aptana > Editors > JavaScript > Code Assist > Check jQuery

Aptana AJAX Code Assist Settings

Switch to the Aptana Perspective

If you just installed the Aptana plugin and are trying to get this to work you'll have to make sure you're using the Aptana Perspective to utilize the AJAX library Code Assist feature:

Window > Open Perspective > Other... > Aptana

Using Eclipse PDT with Aptana Plugin

I installed the Aptana plugin to Eclipse PDT and the jQuery Code Assist worked fine once I realized that I was still using the PDT PHP Perspective instead of the Aptana Perspective.

When I switched to the Aptana Perspective it started working.

Install Aptana Plugin before PDT

Sirokov pointed out that he was unable to get the Code Assist to work with PDT and Aptana Plugin unless he installed the Aptana Plugin first and then installed PDT second.


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

...