Javascript 使用 Eclipse Juno Java EE 的 jQuery 自动完成

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11731884/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-24 06:53:27  来源:igfitidea点击:

jQuery Autocompletion with Eclipse Juno Java EE

javascriptjqueryeclipseaptana

提问by Hymantrades

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

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

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

我试过 Aptana 3 版本的插件,但除了问题我什么也没得到。

Can someone please explain on how to achieve this?

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

Maybe nowadays there are better options from Aptana.

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

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

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

回答by Mayur Shah

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

我在 Juno 中完成了 jQuery 代码。只需按照以下步骤操作:

1) Install the JSDT jQuery Integration plugin

1) 安装JSDT jQuery 集成插件

enter image description here

在此处输入图片说明



2) Go to Project Explorer--> JavaScript Resources

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

enter image description here

在此处输入图片说明



3) Right click on it and go to properties.

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



4) Select "Add JavaScript library"

4) 选择“添加 JavaScript 库”

enter image description here

在此处输入图片说明



5) Select "jQuery Library"

5) 选择“jQuery 库”

enter image description here

在此处输入图片说明



6) You will get code completion as follows

6)您将获得代码完成如下

enter image description here

在此处输入图片说明

Enjoy.

享受。

回答by azerafati

Much simpler thanks to logic8 commentis to add it from

多亏了logic8 评论更简单的是从

help > Install new software

help > Install new software

and enter http://svn.codespot.com/a/eclipselabs.org/jsdt-jquery/updatesite

并输入 http://svn.codespot.com/a/eclipselabs.org/jsdt-jquery/updatesite

Tada!!

多田!!

回答by Kumar Abhishek

I have used https://marketplace.eclipse.org/content/angularjs-eclipseOnce you install this you can right click on your project , Configure to Angularjs project ,

我使用过https://marketplace.eclipse.org/content/angularjs-eclipse安装后,您可以右键单击您的项目,配置为 Angularjs 项目,

And that's it.

就是这样。

回答by Jedaias Rodrigues

There is just something I have not seen anyone say.
If you already have a ready project, but when you created it did not using a javascript project, then you must convert your existing project.
Keep calm, because this conversion will not harm your existing project.

只是有些话我没见过有人说。
如果您已经有一个现成的项目,但是当您创建它时没有使用 javascript 项目,那么您必须转换您现有的项目。
保持冷静,因为这种转换不会损害您现有的项目。

Right click on your project> Configure> Convert to javascript project

Right click on your project> Configure>Convert to javascript project

Ready! Now you can follow the step by step our friend up here did.
I believe this can really help beginners like me.

准备好!现在您可以按照我们的朋友在这里所做的一步一步进行。
我相信这真的可以帮助像我这样的初学者。