Reputation: 93
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
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
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