Visual Studio在编辑器中不显示编译时错误 [英] Visual Studio not displaying compile time errors in editor
问题描述
例如,当我写:
string x = "turtle";
x.Go();
没有红色的波浪线检测到String上缺少Go()方法.
There is no red squiggly line detecting the absence of the Go() method on String.
仅当我编译时才会检测到错误.
Only when I compile does the error get detected.
我刚刚升级到Windows 7,已经安装了Visual Studio 2008.
I've just upgraded to Windows 7, I have Visual Studio 2008.
在我的旧环境中,在实际编译之前就已检测到错误.
In my old environment the errors were detected before the actual compile.
我缺少一个设置吗?
检查工具->选项->文本编辑器-> C#->编辑器中的下划线错误".
"Tools -> Options -> Text Editor -> C# -> Underline errors in the editor" is checked.
我没有实时语义"选项.也许我需要去SP1?
I dont have the "Live Semantic" option. Maybe I need to go to SP1?
推荐答案
您需要在编辑器中打开下划线错误和显示实时语义错误选项工作室.
You need to turn on the underline errors in the editor and show live semantic errors options in Visual Studio.
这些选项可以在这里找到:
These options can be found here:
Tools > Options > Text Editor > C# > Advanced > Editor Help
编辑:您将需要为 查看全文