Home > Software engineering >  how to hide lint error messages in vscode but not squiggly lines
how to hide lint error messages in vscode but not squiggly lines

Time:03-03

How can I turn off VSCode displaying the error message with a red shaded background for the whole line?

enter image description here

I still want the red squiggly line, which lets me hover over the error to get more info:

enter image description here

In summary:

Yes: Red Squiggly Line with hover pop up

No: Red line background, red error message

This is for a Go project, but I noticed it does the same thing for JSON files.

CodePudding user response:

You have installed error lens.

Try to run command errorLens.toggleError to disable or enable it.

  • Related