如何在 VS Code 中禁用 C++ 错误检查?

如何在 VS Code 中禁用 C++ 错误检查?

问题描述:

我正在生成 C++ 示例代码文件,因此它们有很多固有的错误,例如,虚构的函数名称.我正在尝试删除文件中的所有错误消息和与错误相关的语法突出显示.

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.

我想有一些 C++ 设置,但我找不到.

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

打开命令面板 (CTRL + SHIFT + P) - > C/Cpp: Toggle Error Squiggles强>.这将禁用所有错误警告和突出显示.

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

更新:2020 年 4 月:它现在称为c/c++:禁用错误曲线"

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