For example, when I write:
string x = \"turtle\"; x.Go();
There is no red squiggly line detecting the absence of the Go() method on String.
For visual studio 2015 and higher:
Go to: Tools > Options > Text Editor > C# > Advanced > Editor Help
Tools > Options > Text Editor > C# > Advanced > Editor Help
Then select: Enable Full solution analysis
Enable Full solution analysis