There is something wrong with my vscode. When a compilation error occurred, I corrected the error, but the correction will not be reflected in the red mark untill compiled again. g++ version 13.1.0
Here are screenshots of the error. An error occurred. enter image description here it doesn't disappear evenif i delete it. enter image description here
Here's my tasks' configuration. enter image description here
I want the red tilde to disappear immediately when my code has no errors instead of remaining there until the next compilation.
That's the effect of "problemMatcher": ["$gcc"]
. Ditch it.
Simply having an intellisense plugin installed (either the stock C/C++
plugin, or Clangd
, depending on your preference) should give you squiggles updating in real time.