Visual Studio not displaying compile time errors in editor

后端 未结 8 1257
南旧
南旧 2020-12-28 12:32

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.

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-28 12:47

    For visual studio 2015 and higher:

    Go to: Tools > Options > Text Editor > C# > Advanced > Editor Help

    Then select: Enable Full solution analysis

提交回复
热议问题