Java 使用 Eclipse IDE 配置 angularjs

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18421523/
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-12 01:30:15  来源:igfitidea点击:

Configuring angularjs with eclipse IDE

javaeclipsespringangularjs

提问by Vikash

I want to start using AngularJs and Java Spring for development purpose.I am using Eclipse as IDE . I want to configure my Eclipse to have these frameworks working seamlessly.

我想开始使用 AngularJs 和 Java Spring 进行开发。我使用 Eclipse 作为 IDE。我想配置我的 Eclipse 以使这些框架无缝工作。

I know I may be asking too much,but trust me I have done much research on my part and you guys are my last resort.Any help would be much appreciated.

我知道我可能要求太多,但相信我,我已经做了很多研究,你们是我最后的手段。任何帮助将不胜感激。

采纳答案by Eliran Malka

You'd first wanna make sure you have the JSDTinstalled.

您首先要确保安装了JSDT

Next thing is to install some dedicated tools for the job, so check out AngularJS Eclipse Tools. The AngularJS Eclipse Templatesmight be of help, too, and here's a visual guide written for itto get you started.

接下来是为这项工作安装一些专用工具,因此请查看AngularJS Eclipse Tools。该AngularJS Eclipse模板可能会有所帮助,也和这里的书面它的视觉引导,让你开始。

Also see the AngularJS Eclipse getting started page.

另请参阅AngularJS Eclipse 入门页面



Since this answer had been posted, the AngularJS Eclipse pluginwas released, as other answers stated. You might wanna check it out first.

由于已发布此答案,因此发布了AngularJS Eclipse 插件,正如其他答案所述。你可能想先看看。

回答by Jmakuc

Netbeans 8.0 (beta at the time of this post) has Angular support as well as HTML5 support.

Netbeans 8.0(本文发布时的测试版)支持 Angular 和 HTML5。

Check out this Oracle article: https://blogs.oracle.com/geertjan/entry/integrated_angularjs_development

查看这篇 Oracle 文章:https: //blogs.oracle.com/geertjan/entry/integrated_angularjs_development

回答by Darryl Miles

Since these previous answers above, there is now a release of an Eclipse Plugin to assist with development using AngularJS:

由于上面的这些先前的答案,现在发布了一个 Eclipse 插件来帮助使用 AngularJS 进行开发:

https://marketplace.eclipse.org/content/angularjs-eclipsehttps://github.com/angelozerr/angularjs-eclipse/wiki/Installation---Update-Site(take a look around the other Wiki pages for information on features)

https://marketplace.eclipse.org/content/angularjs-eclipse https://github.com/angelozerr/angularjs-eclipse/wiki/Installation---Update-Site(查看其他 Wiki 页面以了解有关特征)

The release at the time of the answer is 0.1.0.

回答时的发布是 0.1.0。

Please also checkout JSDT (http://www.eclipse.org/webtools/jsdt/) and also Eclipse VJET (http://eclipse.org/vjet/). The VJET project appears to be an attempt to provide better feature sets to the editor without being encumbered by the JSDT project (open source politics at play I guess).

还请检查 JSDT ( http://www.eclipse.org/webtools/jsdt/) 和 Eclipse VJET ( http://eclipse.org/vjet/)。VJET 项目似乎是为了向编辑器提供更好的功能集而不受 JSDT 项目的阻碍(我猜是开源)。

回答by Chandra Sekhar

Now you can see the Angularjs tags available as shown below.

现在您可以看到可用的 Angularjs 标签,如下所示。

AngularJS Tags are available.

AngularJS 标签可用.

回答by chandresh

Download angular js from this link and add as new software in eclipse http://oss.opensagres.fr/angularjs-eclipse/0.6.0/

从此链接下载 angular js 并在 eclipse http://oss.opensagres.fr/angularjs-eclipse/0.6.0/ 中添加为新软件

回答by Akhil S

  1. Make sure the project is extracted on your hard disk.
  2. In Eclipse go to the menu: File->New->Project.
  3. Select "General->Project" and click on the next button.
  4. Enter the project name in the "Project name:" field
  5. Disable "Use default location" Click on the "Browse ..." button and select the folder that contains the project (the one from step 1)
  6. Click on the "Finish" button
  7. Right-click with the mouse on you're new project and click "Configure->Convert to AngularJS Project.."
  8. Enable you're project goodies and click on the "OK" button.
  1. 确保项目已提取到您的硬盘上。
  2. 在 Eclipse 中,转到菜单:文件->新建->项目。
  3. 选择“General->Project”,然后单击下一步按钮。
  4. 在“项目名称:”字段中输入项目名称
  5. 禁用“使用默认位置” 单击“浏览...”按钮并选择包含项目的文件夹(步骤 1 中的文件夹)
  6. 单击“完成”按钮
  7. 用鼠标右键单击您的新项目,然后单击“配置->转换为 AngularJS 项目..”
  8. 启用您的项目好东西,然后单击“确定”按钮。

回答by Kiran

Configuration worked with Eclipse Mars 4.5 version.

配置适用于 Eclipse Mars 4.5 版本。

1) Install Eclipse Mars 4.5 from https://eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/mars2This comes with Tern and embedded Node.js server

1) 从https://eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/mars2安装 Eclipse Mars 4.5 这带有 Tern 和嵌入式 Node.js 服务器

2) Install AngularJS Eclipse plugin from Eclipse Marketplace

2) 从 Eclipse Marketplace 安装 AngularJS Eclipse 插件

3) Configure node.js server to the embedded nodejs server within Eclipse (found in the eclipse plugins folder) at Windows-> Preferences -> JavaScript -> Tern -> Server -> node.js. No extra configurations are required.

3) 在 Windows-> Preferences -> JavaScript -> Tern -> Server -> node.js 中将 node.js 服务器配置为 Eclipse 中的嵌入式 nodejs 服务器(在 eclipse plugins 文件夹中)。不需要额外的配置。

4) Test configuration in a html or javascript file. https://github.com/angelozerr/angularjs-eclipse

4) 在 html 或 javascript 文件中测试配置。 https://github.com/angelozerr/angularjs-eclipse

回答by Tadele Ayelegn

With current Angular 4 and 5 versions, there is an IDE for that.

对于当前的 Angular 4 和 5 版本,有一个 IDE。

Go to eclipse market place any search for 'Angular'. You will see the IDE and install it.

转到 eclipse 市场,任意搜索“Angular”。您将看到 IDE 并安装它。

enter image description here

在此处输入图片说明

After that restart eclipse and follow the welcome messages to choose preferences.

之后重新启动 eclipse 并按照欢迎消息选择首选项。

How to start using eclipse with angular projects?

如何开始在 angular 项目中使用 Eclipse?

Considering you already have angular project and you want to import it into eclipse.

考虑到您已经有 angular 项目并且想要将其导入 eclipse。

go to file > import > choose Angular Project

file > import > choose Angular Project

enter image description here

在此处输入图片说明

and It would be better to have your projects in a separate working set so that you will not confuse it with other kind of (like java)projects.

并且最好将您的项目放在一个单独的工作集中,这样您就不会将它与其他类型的(如 java)项目混淆。

With Angular IDE You will have a terminal window too.

使用 Angular IDE 您也将拥有一个终端窗口。

To open this type terminal in eclipse search box(quick access) on the top right corner.

在右上角的eclipse搜索框(快速访问)中打开这种类型的终端。

enter image description here

在此处输入图片说明

回答by Baisakha Chauhan

Hi Guys if u are using angular plugin in eclipse that time is plugin is limited periods after that if u want to used this plugin then u pay it so i suggest to you used webstrome and visual code ide that are very easy and comfort to used so take care if u start and developed a angular app using eclipse

嗨,伙计们,如果你在 Eclipse 中使用 angular 插件,那么插件时间有限,如果你想使用这个插件,那么你付费,所以我建议你使用 webstrome 和可视化代码 ide,它们使用起来非常容易和舒适如果你开始并使用 Eclipse 开发了一个有角度的应用程序,请注意