[英]Visual studio 2015 editor display errors with ECMA Script 6 syntax
I am writing an Application using Node.js webserver. 我正在使用Node.js网络服务器编写应用程序。 I used Arrow functions , available since ECMA Script 2015, and my project built correctly.
我使用了自ECMA Script 2015起可用的Arrow函数 ,并且我的项目构建正确。
However Visual Studio 2015 shows me a lot of Errors in its 'Error List' window: 但是,Visual Studio 2015在“错误列表”窗口中向我显示了很多错误:
This is really annoying, does anyone know how to fix this VS2015 behaviour? 这真的很烦人,有人知道如何解决VS2015的行为吗?
Are you just using Visual Studio 2015? 您只是在使用Visual Studio 2015吗? Because I am using ReSharper, and you specifically have to set which EcmaScript version you are using.
因为我使用的是ReSharper,所以您必须特别设置要使用的EcmaScript版本。
From the menu bar in VS2015 -> Resharper -> Options -> Code Editing -> JavaScript-> Inspections -> JavaScript language level. 从VS2015的菜单栏中-> Resharper->选项->代码编辑-> JavaScript->检查-> JavaScript语言级别。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.