我想在 Eclipse 中为 jQuery 使用自动完成功能.Aptana 插件已安装:
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
也支持 jQuery:
Support for jQuery also:
Aptana Support for jQuery
Version: 1.3.2.00005
JavaScript/WTP 已安装:
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?
当您安装额外的 AJAX 库支持时,该库的代码辅助默认不会打开.
When you install additional AJAX library support the Code Assist for that library isn't turned on by default.
在安装其他 AJAX 库后打开 Code Assist 功能:
To turn on the Code Assist feature after you install additional AJAX Libraries:
Preferences > Aptana > Editors > JavaScript > Code Assist > Check jQuery
如果您刚刚安装了 Aptana 插件并试图让它工作,则必须确保您使用 Aptana Perspective 来利用 AJAX 库代码辅助功能:
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
我在 Eclipse PDT 中安装了 Aptana 插件,当我意识到我仍在使用 PDT PHP Perspective 而不是 Aptana Perspective 时,jQuery Code Assist 运行良好.
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.
当我切换到 Aptana Perspective 时,它开始工作了.
When I switched to the Aptana Perspective it started working.
Sirokov 指出,除非他先安装 Aptana 插件,然后再安装 PDT,否则他无法让 Code Assist 与 PDT 和 Aptana 插件一起使用.
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.
这篇关于Eclipse 和 jQuery 代码辅助的 Aptana 插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!