Visual Studio not displaying compile time errors in editor

后端 未结 8 1272
南旧
南旧 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:48

    Select Tool -> Options, then Text Editor. Under the language you are using (ie C#), go to the Advanced and make sure the Underline errors in the editor and Show live semantic errors are checked

提交回复
热议问题