Robert Zalog
Robert Zalog

Reputation: 93

How to disable C++ error checking in VS Code?

I am producing C++ example code files, and as such they have a lot of inherent errors, e.g., made-up function names. I am trying to get rid of all error messages and error-related syntax highlighting in my files.

I imagine there is some setting for C++ but I could not find it.

Upvotes: 9

Views: 22740

Answers (2)

TheCableGUI
TheCableGUI

Reputation: 124

This method will make the squiggly underline transparent.

It will not remove error handling,

Simply a workaround for annoying error and syntax highlighting with compiled languages.


Edit the json key value within the settings.json:

"workbench.colorCustomizations": {
        "editorError.foreground": "#00000000",
        "editorWarning.foreground": "#00000000",
        "editorInfo.foreground": "#00000000"
    }


Upvotes: 0

Lukas Bobinas
Lukas Bobinas

Reputation: 701

Open up the command palette (CTRL + SHIFT + P) - > C/Cpp: Toggle Error Squiggles. This will disable all error warnings and highlighting.

Update: April 2020: it is now called "c/c++: Disable Error Squiggles"

Upvotes: 32

Related Questions