使用 Eclipse Juno Java EE 的 jQuery 自动完成 [英] jQuery Autocompletion with Eclipse Juno Java EE

查看:24
本文介绍了使用 Eclipse Juno Java EE 的 jQuery 自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了一些关于如何为 Eclipse 启用 jQuery(特别是自动完成)支持的过时信息.使用 Aptana 或其他插件.

I've read several DATED information on how to enable jQuery (specially auto completion) support for Eclipse. Either using Aptana or other plugins.

我已经尝试了 Aptana 3 版本的插件,但除了问题之外什么也没得到.

I've tried Aptana 3 version plugin, but I get nothing but problems.

有人可以解释一下如何实现这一目标吗?

Can someone please explain on how to achieve this?

也许现在 Aptana 有更好的选择.

Maybe nowadays there are better options from Aptana.

尝试使用 Eclipse Indigo 和 Helios,仍然使用 Aptana Web 工具包.不起作用.

Tried with Eclipse Indigo and Helios, and still Aptana Web tools pkg. does not work.

推荐答案

我在 Juno 中获得了 jQuery 代码补全.只需按照以下步骤操作:

I got the jQuery code completion in Juno. Just follow the following steps:

1) 安装 JSDT jQuery 集成插件

2) 转到项目资源管理器--> JavaScript 资源

2) Go to Project Explorer--> JavaScript Resources

3) 右键单击​​它并转到属性.

3) Right click on it and go to properties.

4) 选择添加 JavaScript 库"

4) Select "Add JavaScript library"

5) 选择jQuery 库"

5) Select "jQuery Library"

6) 您将获得如下代码补全

6) You will get code completion as follows

享受.

这篇关于使用 Eclipse Juno Java EE 的 jQuery 自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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