Error highlighting

Hello,

I've been working with NetBeans IDE (Java) for quite some time and now I'm learning C#. What disturbs me alot in the Visual Studio 2005 IDE is, that non-syntax errors that would lead to a compiler error are not highlighted until I compile my source code. For example if I'd return an integer although the return type of my method is void, the IDE wouldn't highlight that error until I'd try to compile the source. That's quite annoying to me since NetBeans IDE always did that and I'm used to it.

Now my question is: Am I missing an option Is there a way to activate it

Thanks for any help!


Answer this question

Error highlighting

  • jrb1

    The IDE simply doesn't do the sort of semantic analysis that is required to catch these errors before compilation. We are considering adding this feature to a future release of the C# IDE, however.

    -Tom Meschter
    Software Dev, Visual C# IDE



  • Saurabh Kulkarni

    It's not a problem in the same way as it wouldn't be a problem if you had no text coloring. You can also write your code in notepad, if you get my drift. It's all about comfort, that's why IDEs exist in the first place. And for me it's comfortable (probably because I'm used to it) when the IDE immidiatly underlines every error. But thanks for your post anyway!

  • Rod Yager

    Alright, thanks for the answer!

  • Ryan Paddy

    Nope, there's no such option.

    To be honest, I really don't see it as a problem...

  • Error highlighting