简体   繁体   English

将VS 2017 JavaScript编译错误波浪线更改为红色

[英]Change VS 2017 JavaScript compilation error squiggly line and mark to red

I have recently moved on from VS 2015 to VS 2017. I thought I had lost the ability for VS to warn me about compile errors in JavaScript, but eventually realized they have changed the color of the squiggly line and the scroll bar mark to light green: 我最近从VS 2015转到了VS2017。我以为我已经失去了VS来警告我有关JavaScript编译错误的功能,但最终意识到它们已将波浪线和滚动条标记的颜色更改为浅绿色。 :

绿色花体!

I cannot for the life of me understand what part of light green spells compilation error... 我一生无法理解浅绿色的拼写错误是哪一部分...

Is there a way to change this for JavaScript specifically? 有没有一种方法可以专门针对JavaScript进行更改? All other languages appear to be red as expected. 所有其他语言似乎都是预期的红色。

Pre-req: I have Web Essentials installed I am using dark theme 先决条件:我已安装Web Essentials,我正在使用深色主题

Any help is appreciated, thanks! 任何帮助表示赞赏,谢谢!

Found it! 找到了!

Tools | 工具| Options | 选项| Text Editors | 文字编辑器| JavaScript/TypeScript | JavaScript / TypeScript | ESLint ESLint

禁用ESLint

I disabled it and now my marks and squiggles are red again! 我禁用了它,现在我的标记和花鼓又变红了!

I looked into ESLint ( ESLint | About ) and do not know why I would really (personally) want to enable it (or why it is enabled by default in 2017). 我调查了ESLint( ESLint | About ),但不知道为什么我真的要亲自启用它(或者为什么要在2017年默认启用它)。

I can add this to a list of things to modify / disable when installing VS 2017 now -- and the list is getting quite large... 我可以将其添加到现在安装VS 2017时要修改/禁用的事物列表中-并且列表变得越来越大...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM