'Visual Studio 2019 not underlining errors on Mac

Visual Studio is not underlining errors. For example on my PC if type out: private int myInt

it will put a little red underline after because i forgot ;

on my mac it does nothing making debugging a lot harder.

I did a few google searches but the only thing i find is to go to Tools → Options → Text Editor → C# → Advanced → Underline errors. Tools doesn't have an options tab on the Mac version, and when I found the Text Editor → C# under preferences, theres no Advanced option.



Solution 1:[1]

The setting is View -> Inline Messages. HOWEVER: This was set correctly and it still didn't work for me. After a combination of fixing compile errors (letting it compile once) and then restarting VS, it is now working for me.

Solution 2:[2]

Got the same problem and nothing worked, excepted :

cmd+ shift+ p

and then

C/C++ : Enable Error Squiggles

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 Michael Economy
Solution 2 Polymniaque