简体   繁体   中英

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.

Here is an example of my JavaScript being squiggled: 在此处输入图像描述

I have tried installing prettier, eslint but it does nothing to solve this.

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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