Visual Studio syntax coloring not working?

Hi, not really gameplay programming but not sure where to ask.

It seems like randomly Syntax coloring works on some files and not others.

Below is a weapon class that I am rewriting into a general equipment class.
Notice the weapon is colored properly, but the new class made days ago is not.

I can’t seem to find anything like this online, maybe it’s related to UE4?

Has anyone experienced this with any fixes/workarounds?


You can try rebuilding or generating Visual studio files again. Rebuilding Helps me with the red lines that are false positives.

AFAK, you cant get fully support by using native intellegent sense of VS. Instead, some people recommand to use other plug-in such as Visual Asset.

VA only supports color for 4 types, so it ends up looking nearly the same as without unfortunately.