Eclipse IDE替代与ECMAScript 6验证 [英] Eclipse IDE alternative with ECMAScript 6 validation

查看:2654
本文介绍了Eclipse IDE替代与ECMAScript 6验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用JSDT运行Eclipse Mars 4.5,因为它不能识别现代模式,所以使用JavaScript / Node.JS开发越来越困难:





这是因为JavaScript验证器设置为ECMAScript 3。





令我惊讶的是,这样一个最新版本的Eclipse,这个下拉列表是灰色的,我不能选择5或5.1,更不用说6. ES3是从1999(!)。



我是正确的假设Eclipse没有可观的JavaScript社区?其他具有现代ECMAScript支持的FOSS项目:




  • NetBeans支持ES5.1,ES6在8.1

  • Atom.io支持ES6



(我没有使用这些,所以我不知道他们如何与Eclipse进行比较)



Eclipse不鼓励JavaScript开发?或者,实际上是一个很好的非黑客去插件,Eclipse可以让ES6玩得很好吗?

解决方案

Eclipse Neon将改善对JST 2.0.0的JavaScript的大量支持,如:




  • 支持ES6

  • Grunt,Gulp,npm支持



您还可以尝试 tern.java ,如果你希望进行高级的完成,可以使用eslint的验证,支持ES6的jshint。请参阅 Tern Linter 部分。


I'm running Eclipse Mars 4.5 with JSDT and it's getting increasingly difficult to use this for JavaScript/Node.JS development, since it doen't recognize modern patterns:

This is because the JavaScript Validator is set to ECMAScript 3.

To my surprise for such an up-to-date release of Eclipse, this dropdown is greyed out and I cannot select 5 or 5.1, let alone 6. ES3 is from 1999 (!).

Am I correct to assume that Eclipse has no considerable JavaScript community? Other FOSS projects with modern ECMAScript support:

  • NetBeans supports ES5.1, ES6 in 8.1
  • Atom.io supports ES6

(I haven't used these so I don't know how they compare to Eclipse)

Is Eclipse discouraged for JavaScript development? Or is there actually a well-documented non-hacky go-to plugin for Eclipse to play nice with ES6?

解决方案

Eclipse Neon will improve a lot support for JavaScript with JST 2.0.0 like :

  • support for ES6
  • Grunt, Gulp, npm support

You can try too tern.java if you wish advanced completion, validation where you can use for eslint, jshint which support ES6. See Tern Linter section for that.

这篇关于Eclipse IDE替代与ECMAScript 6验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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