In VB.NET projects, errors are highlighted immediately after cursor leaves the line. IN C#, I have to wait several seconds for IntelliSense to highlight it. Also, C# version doesn't show all project errors in "Errors List", unless you start to build it. Actually, it seems to work differently in every way. Is it possible to adjust that behavior?
+4
A:
VB instantly compiles the new code, whereas with C#, only syntaxerrors are highlighted directly, and compileerrors after you build the code.
Femaref
2010-06-06 11:32:58
+3
A:
It's because VB.Net does full background compilation whenever the IDE is idle, so it always have the latest information ready. C# doesn't do this and instead have a separate process that creates the intellisense information.
You can't really adjust it without a lot of work or buying some third party tool, it's one of the differences between the languages, the VB.Net team concentrates on certain aspects and the C# team on others.
Though I think some of the addins you can buy (possibly Resharper and others) are advertising better Intellisense if you really want it.
ho1
2010-06-06 11:33:37
I would say this isn't *entirely* accurate, since ReSharper does background compilation on C#, inside VS.
Nick Craver
2010-06-06 11:36:48
Can ReSharper do the same job as VB.NET background compiler does?
Sphynx
2010-06-06 11:42:45
@Nick Craver: Adjusted my answer slightly to try to cover that.
ho1
2010-06-06 11:46:13
@Sphynx: I'm not sure it's 100% the same, since I don't do VB, haven't since 2003, but it does everything I'd want, including instant compilation warnings...I'm on a pretty beefy machine though, so not sure if it lags a little on other hardware or not.
Nick Craver
2010-06-06 11:51:59
I tried out a Resharper trial a year ago and thought it was too slow (not very slow, but just enough to be annoying), but that was on my previous machine which was a couple of years old by then and was just a mid range when I bought it.
ho1
2010-06-06 12:01:12
@ho1: Also remember that VS 2010 is a lot more lightweight/snappier than VS 2008 to start with, with much better VM overhead, so all plugins got a nice performance boost there as well.
Nick Craver
2010-06-06 12:07:02