views:

38

answers:

2

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.

Only when I compile does the error get detected.

I've just upgraded to Windows 7, I have Visual Studio 2008.

In my old environment the errors were detected before the actual compile.

Is there a setting that I am missing?

EDIT: "Tools -> Options -> Text Editor -> C# -> Underline errors in the editor" is checked.

I dont have the "Live Semantic" option. Maybe I need to go to SP1?

+3  A: 

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

Edit: You will need to install SP1 for this functionality to work.

Andrew Hare
see edit. already checked.
geejay
+1  A: 

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

phsr