Accidentally disabled error squiggles in Visual Studio Code

Solution 1:

Go to "Extensions" in the sidebar, after that go to your extension for C / C ++, click on manage, then click on extension settings. In the search box, add the term "error" right after what is already written there. It has three tabs, "User", "Workspace", "Your_Folder", the User being the one being viewed. Go to "Error Squiggles" and select "EnabledIflncludesResolve". Then, check if in the "Workspace" tab and folder "EnabledIflncludesResolve" is also selected. I took a print of my screen. In my case I use Microsoft's C / C ++ extension (ms-vscode.cpptools).

Solution 2:

Click Right Click in your editor window and select for 'Command Pallet' option

OR press Ctrl+Shift+P and search for the option 'Enable Error Squiggle' and just click on it. Reference Image That's it! If you want to Disable Red Wavy underlines showed after syntax error, just Follow the above procedure and search for 'Disable Error Squiggle' and click on it.