Last updated: Apr 6, 2024
Reading time·3 min

To enable error squiggles in VS Code:
Ctrl + Shift + P on Windows and LinuxCommand + Shift + P on macOSF1 to open the Command Palette.
If you open a C file that has errors, you should be able to see the error squiggles.

If you want to disable error squiggles, you would set the setting to disabled.
If you can't see the C_Cpp: Error Squiggles setting, make sure you have the
c/c++ extension installed and enabled.
Ctrl + Shift + X on Windows or Linux.Command + Shift + X on macOS.
Once you install and enable the extension, you will see the C_Cpp: Error Squiggles setting.
If error squiggles are still not shown in your project, try to set the setting locally to your workspace.
Ctrl + Shift + P on Windows and Linux.Command + Shift + P on macOS.F1 to open the Command Palette.
If you want to disable error squiggles, you would set the setting to disabled.
When you edit the workspace setting, it overrides any global configuration by
updating your .vscode/settings.json file.
Alternatively, you can:
Create a .vscode folder in the root directory of your project.
Create a settings.json file in the .vscode folder.
Add the following code to your settings.json file.
{ "C_Cpp.errorSquiggles": "enabled" }

If you want to disable error squiggles, set the setting to disabled.
{ "C_Cpp.errorSquiggles": "disabled" }
You can also enable or disable error squiggles using the command palette:
Ctrl + Shift + P on Windows and Linux.Command + Shift + P on macOS.F1 to open the Command Palette.
If you need to disable error squiggles via the Command Palette:
Ctrl + Shift + P on Windows and Linux.Command + Shift + P on macOS.F1 to open the Command Palette.
Note that the settings in your local .vscode/settings.json file
(workspace-specific settings) always override global settings.
You can learn more about the related topics by checking out the following tutorials: