简体   繁体   English

VS Code 中的红色波浪线

[英]Red Squiggly Lines in VS Code

My Visual Studio code editor keeps underlining my code incorrectly and I don't know how to stop it.我的 Visual Studio 代码编辑器一直错误地为我的代码加下划线,我不知道如何停止它。

Here is an example of my JavaScript being squiggled:这是我的 JavaScript 被波浪形显示的示例: 在此处输入图像描述

I have tried installing prettier, eslint but it does nothing to solve this.我试过安装 prettier, eslint 但它没有解决这个问题。

How can I stop these squiggly lines from appearing incorrectly?我怎样才能阻止这些波浪线出现不正确? I want them IF they are correct.如果他们是正确的,我想要他们。

If I click on the problems tab, it shows this:如果我单击问题选项卡,它会显示以下内容: 在此处输入图像描述

Solved, Thanks to zscoop98's answer, I was able to find this page which showed there exists an option standard.enable in settings.json that, after setting that from true to false , it solved the issue and there are no longer these annoying red squiggly lines.已解决,感谢truefalse ,我能够找到此页面,该页面显示设置中存在一个选项standard.enable线。

And you can uninstall ESLint extension in vs code to get rid of red lines.You can search ESLint extension in extions folder of vscode您可以在 vs code 中卸载 ESLint 扩展以摆脱红线。您可以在 vscode 的 extions 文件夹中搜索 ESLint 扩展

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

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