How to clean Highlighted Error Line in VS Code?

Sometimes when I execute code with “Shift + Enter” in VS Code if there’s error problematic line in the VS Code Editor get highlighted with red. But when I change code, this red line still stays the same, which is very annoying. How to clean it?

Screenshot Imgur: The magic of the Internet

Sometimes it cleaned but sometimes don’t.

Executing again with the corrected part should remove the red squiggles, no?

1 Like

Have you tried clearing the inline results?

2 Likes