问题
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.
回答1:
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"
来源:https://stackoverflow.com/questions/51552414/how-to-disable-c-error-checking-in-vs-code