Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable error highlighting in VS Code?

I need to disable error highlighting in Java files in VS Code. VS Code tries to check a Groovy file while thinking it is a Java file.

As you can see in the picture all imports after the first and the types after the first field are highlighted red (due to missing semicolons). However I do not want the error check for this Groovy file. enter image description here

NOTE: I only have the plugins Clang, RedHat.Java, Markdown PDF, Sort Lines, and Uncrustify installed. Even if I disable all the red highlighting is visible.

like image 628
Jörg Rech Avatar asked Sep 05 '17 19:09

Jörg Rech


People also ask

What is enable highlighting error in VS code?

Launch VS Code Quick Open ( Ctrl+P ), paste the following command, and press enter. ErrorLens turbo-charges language diagnostic features by making diagnostics stand out more prominently, highlighting the entire line wherever a diagnostic is generated by the language and also prints the message inline.

How do I disable syntax highlighting in Vscode?

You can enable / disable semantic highlighting in the VS Code settings. Press F1 to open the command window, and then enter "Open Settings (UI)". Search "semantic" to find the Editor>Semantic Highlighting item . Set the value to true to enable semantic highlighting; otherwise set it to false .


2 Answers

I found this:

"problems.decorations.enabled": false,
like image 129
Anacarde Avatar answered Oct 19 '22 15:10

Anacarde


You should disable the linter, which is by default enable in VS Code. To do so you can go to File-> Prefrences -> setting

like image 33
Ajinkya Dhote Avatar answered Oct 19 '22 14:10

Ajinkya Dhote