简体   繁体   English

当代码没有任何问题时,VS 代码一直显示红色下划线

[英]VS code keep showing red underline when there's nothing wrong with the code

my VS code keeps showing the red underline as if there's anything wrong with my code when I pasted or delete some console or comment, which is weird because the red underline is running all over the place.当我粘贴或删除一些控制台或注释时,我的 VS 代码一直显示红色下划线,好像我的代码有任何问题,这很奇怪,因为红色下划线到处都是。 look at the image below to see what it looks like.看看下面的图片,看看它是什么样子。

描述

this error doesn't affect my code but it's annoying to see the red underline everywhere.这个错误不会影响我的代码,但是到处都看到红色下划线很烦人。 i'm seeking for a solution, does anyone ever meet this error?我正在寻找解决方案,有人遇到过这个错误吗? and how to fix it?以及如何解决它?

This seldom occurs when your code has large trunks of unsaved changes.当您的代码有大量未保存的更改时,这种情况很少发生。 Just save your code once and you are good to go.只需保存您的代码一次,您就可以开始使用了。

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

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