'VS Code - Blue underline and strange colors

I've been using Intellij for Java, and today tried to use VS Code. However, when I open my file there are several visual issues.

throws have "t" and "s" have a lighter colour

IOException has "tion" greyed out and has a blue wavy underline.

How can I resolve this issue?



Solution 1:[1]

I've had that problem before, generally when it lags a little. A trick I use is delete part of it (where it is complaining, sometime just the bracket) and then undo, so that it re-parses it, and sees that it is valid.

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 freddybobjo