Aptana插件为Eclipse和jQuery代码协助 [英] Aptana Plugin for Eclipse and jQuery code assist

查看:160
本文介绍了Aptana插件为Eclipse和jQuery代码协助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Eclipse中使用jQuery的自动完成功能。安装Aptana插件:

  Aptana Web开发工具
版本:1.5.1.25495-787Y07jbcbrChz-Tq2k383275

还支持jQuery:

 code> Aptana支持jQuery 
版本:1.3.2.00005

JavaScript / WTP已安装:

  JavaScript开发工具
版本:1.1.1.v200906091427-77-FGBCcNBC-BeMcEeOm
构建ID:20090616035105

但自动完成功能不起作用。有没有人想知道问题在哪里?

解决方案

打开JavaScript代码辅助功能



当您安装其他AJAX库支持时,默认情况下,该库的代码辅助功能未启用。



打开代码辅助安装其他AJAX库后的功能:

 首选项> Aptana>编辑者> JavaScript>代码辅助>检查jQuery 



切换到Aptana透视图



如果你只是安装了Aptana插件,并试图让这个工作,您必须确保您使用Aptana透视图来利用AJAX库代码辅助功能:

 窗口>开放视角>其他...> Aptana 



将Eclipse PDT与Aptana插件一起使用



我安装了Aptana插件到Eclipse PDT和jQuery代码辅助工作正常,一旦我意识到,我仍在使用PDT PHP透视而不是Aptana透视。



当我切换到Aptana透视图时,它开始工作。



在PDT之前安装Aptana插件



Sirokov指出,他无法获得代码协助工作与PDT和Aptana插件,除非先安装Aptana插件,然后再安装PDT。


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?

解决方案

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

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.

这篇关于Aptana插件为Eclipse和jQuery代码协助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆