The C/C++ extension by Microsoft has been installed, and everything works really well. But the VSCode does not seem to show any red underline for syntax errors when there are issues.
I'm using Linux (kubuntu) with the pre-installed g++. I can also successfully build my code and run it.
Any suggestions on how to fix this problem?
After reading the comment on the previous answer, it seems like something is wrong with your settings. One final way to fix this issue is to reset the settings of VS Code to its factory defaults.
Delete the following files:
%APPDATA%\Code\User\settings.json$HOME/.config/Code/User/settings.jsonOr, do it directly from Code:
settings.json file.Disclaimer: This is only a workaround. It would be best if you tried to see which setting is likely causing the bug.
In settings.json:
"C_Cpp.errorSquiggles": "Enabled"

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With