'How to fix code highlighted in red in VS Code

This happened suddenly after I restarted my computer, all of a sudden any code I type is highlighted in red. Does anyone know how to fix this? See image.

OS: Windows

Image

UPDATE: This is the weirdest thing, I simply restarted my computer (again), and it just disappeared. It's a shame, because I didn't get to figure out how it happened, but it's good to know about this Bisect feature in VS Code!

Image



Solution 1:[1]

This might have something to do with one of your extensions acting up.

VScode has a nice feature to help you find the specific extension that's causing problems without you having to check each one individually.

VScode bisect function.

Press crtl+p then type bisect

Solution 2:[2]

It may be one of your extensions that makes this. You can check it by disabling them one by one(ctrl + shift +X and then choose installed). I guess maybe an extension that belongs these:enter image description here. Hope helpful.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Blackgaurd
Solution 2 1y0una