用Eclipse IDEconfigurationangularjs

我想开始使用AngularJs和Java Spring作为开发目的。我使用Eclipse作为IDE。 我想configuration我的Eclipse使这些框架无缝工作。

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

你首先要确保你已经安装了JSDT

接下来的事情是安装一些专门的工具,所以看看AngularJS的Eclipse工具 。 AngularJS的Eclipse模板也可能有帮助,下面是一个可视化的指南 ,帮助你开始。

另请参阅AngularJS Eclipse入门页面 。


由于这个答案已经发布, AngularJS Eclipse插件发布了,正如其他答案所述。 你可能想先检查一下。

  • Eclipse Marketplace或更新站点在eclipse中安装JavaScript开发工具(JSDT)AngularJS Eclipse插件angularjs-eclipse-0.5.0

    安装AngularJS Eclipse

  • Right Click on your project --> Configure --> Convert to Angularjs Project (如下图所示)

    转换Angularjs项目

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

AngularJS标签可用

Netbeans 8.0(本文发布时的testing版)具有对Angular的支持以及对HTML5的支持。

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

  1. 确保项目在您的硬盘上被提取。
  2. 在Eclipse中进入菜单:File-> New-> Project。
  3. select“常规 – >项目”,然后点击下一步button。
  4. 在“项目名称:”字段中input项目名称
  5. 禁用“使用默认位置”单击“浏览…”button并select包含项目的文件夹(步骤1中的文件夹)
  6. 点击“完成”button
  7. 用鼠标右键单击你是新项目,然后点击“configuration – >转换到AngularJS项目..”
  8. 启用你的项目好东西,然后点击“确定”button。

由于上面这些以前的答案,现在有一个Eclipse插件的发布,以协助开发使用AngularJS:

https://marketplace.eclipse.org/content/angularjs-eclipse https://github.com/angelozerr/angularjs-eclipse/wiki/Installation–Update-Site (浏览其他维基页面以获取有关信息特征)

答案发布时为0.1.0。

还请检出JSDT( http://www.eclipse.org/webtools/jsdt/ )和Eclipse VJET( http://eclipse.org/vjet/ )。 VJET项目似乎试图为编辑提供更好的function集,而不受JSDT项目的阻碍(我猜这是开源政治)。

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

configuration使用Eclipse Mars 4.5版本。

1)从https://eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/mars2安装Eclipse Mars 4.5这与Tern和embeddedNode.js服务器

2)从Eclipse Marketplace安装AngularJS Eclipse插件

3)在Windows-> Preferences – > JavaScript – > Tern – > Server – > node.js中将node.js服务器configuration到Eclipse中的embedded式nodejs服务器(位于eclipse plugins文件夹中)。 不需要额外的configuration。

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