Poor Intellisense

  • Thread starter Thread starter Tobias Lekman
  • Start date Start date
T

Tobias Lekman

Hi,

I was wondering whether the (compared to VB.NET) poor
Intellisense will be upgraded in a service release, or do
I have to wait for the next VS.NET? Is there an inherent
reason for the lack of a speedy Intellisense engine in C#??

Regards,

Tobias
 
I'm not sure what you mean, but I use VS.2002/2003 and C# and intellisense
is instant. I'm not sure how it could be any faster.
 
OK,

If I have, for example, declared a variable as

AddressBook a = new AddressBook;

it will take till I recompile for the IDE to put the
sqiggly for Unknown Type (say that AddressBook is not
declared in same NS). This would happen IMMEDIATELY in VB,
if I declared it as

Dim a As New AddressBook

If your IDE is instant, is there a setting to prioritize
or boost Intellisense performance??
 
Well, the red squiggly came the instant I hit key down to move to a new
line.

I don't know why it's slower in C# for you.

You can set some IntelliSense options under Tools->Options->Text Reader
 
Tobias,

VB has a background compilation mode which aids Intellisense (I
believe). This is probably why you see this speed differential (although I
will side with Morten and agree that the times are almost instant, and I've
never had a problem with the Intellisense in C#). Until the C# IDE has such
a feature, I wouldn't count on the Intellisense getting any better.

Also, the squiggly for an unknown type is a function of the background
compiler in VB, not of Intellisense.

Hope this helps.
 
Hi,

Hmm, that's odd! I tried again, and this time I was even
able to compile without any error or warning given,
although the type was not declared in my NS or in any
reference. Even called in

FakeType123 f = new FakeType123;

This compiled fine! Have checked every single setting
under options... strange indeed!
 
Nicholas,

Thanks for that explanation. I can see why then, as the
background compiler is not part of C#? Is there a way of
enabling background compilation?

I noticed that if I put in

AddressBook a = new AddressBook();

I get a blue squiggly, which I take means "warning"? Is
there any way to prematurely recieve warnings, maybe by
adjusting warning levels?

Thanks,

Tobias

-----Original Message-----
Tobias,

VB has a background compilation mode which aids Intellisense (I
believe). This is probably why you see this speed differential (although I
will side with Morten and agree that the times are almost instant, and I've
never had a problem with the Intellisense in C#). Until the C# IDE has such
a feature, I wouldn't count on the Intellisense getting any better.

Also, the squiggly for an unknown type is a function of the background
compiler in VB, not of Intellisense.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Tobias Lekman said:
OK,

If I have, for example, declared a variable as

AddressBook a = new AddressBook;

it will take till I recompile for the IDE to put the
sqiggly for Unknown Type (say that AddressBook is not
declared in same NS). This would happen IMMEDIATELY in VB,
if I declared it as

Dim a As New AddressBook

If your IDE is instant, is there a setting to prioritize
or boost Intellisense performance??

C#
and intellisense


.
 
Oh,

I do get that now. Since I had other errors, that came up,
it ignored the type not found, as it is treated as a
warning...

Tobias
 
Tobias, no there isn't a way to turn on background compilation like VB.Net.
That's just one of the differences between the two. You're just going to
have to compile your app to see the errors. Sorry for the 'bad' news.

--
Greg Ewing [MVP]
http://www.citidc.com


Tobias Lekman said:
Nicholas,

Thanks for that explanation. I can see why then, as the
background compiler is not part of C#? Is there a way of
enabling background compilation?

I noticed that if I put in

AddressBook a = new AddressBook();

I get a blue squiggly, which I take means "warning"? Is
there any way to prematurely recieve warnings, maybe by
adjusting warning levels?

Thanks,

Tobias

-----Original Message-----
Tobias,

VB has a background compilation mode which aids Intellisense (I
believe). This is probably why you see this speed differential (although I
will side with Morten and agree that the times are almost instant, and I've
never had a problem with the Intellisense in C#). Until the C# IDE has such
a feature, I wouldn't count on the Intellisense getting any better.

Also, the squiggly for an unknown type is a function of the background
compiler in VB, not of Intellisense.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Tobias Lekman said:
OK,

If I have, for example, declared a variable as

AddressBook a = new AddressBook;

it will take till I recompile for the IDE to put the
sqiggly for Unknown Type (say that AddressBook is not
declared in same NS). This would happen IMMEDIATELY in VB,
if I declared it as

Dim a As New AddressBook

If your IDE is instant, is there a setting to prioritize
or boost Intellisense performance??


-----Original Message-----
I'm not sure what you mean, but I use VS.2002/2003 and C#
and intellisense
is instant. I'm not sure how it could be any faster.


.
 
A red squiggly is a syntax error, and a blue squiggly is a compile-time
error. Both warnings and fatal errors are blue.

Chris

Tobias Lekman said:
Nicholas,

Thanks for that explanation. I can see why then, as the
background compiler is not part of C#? Is there a way of
enabling background compilation?

I noticed that if I put in

AddressBook a = new AddressBook();

I get a blue squiggly, which I take means "warning"? Is
there any way to prematurely recieve warnings, maybe by
adjusting warning levels?

Thanks,

Tobias

-----Original Message-----
Tobias,

VB has a background compilation mode which aids Intellisense (I
believe). This is probably why you see this speed differential (although I
will side with Morten and agree that the times are almost instant, and I've
never had a problem with the Intellisense in C#). Until the C# IDE has such
a feature, I wouldn't count on the Intellisense getting any better.

Also, the squiggly for an unknown type is a function of the background
compiler in VB, not of Intellisense.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Tobias Lekman said:
OK,

If I have, for example, declared a variable as

AddressBook a = new AddressBook;

it will take till I recompile for the IDE to put the
sqiggly for Unknown Type (say that AddressBook is not
declared in same NS). This would happen IMMEDIATELY in VB,
if I declared it as

Dim a As New AddressBook

If your IDE is instant, is there a setting to prioritize
or boost Intellisense performance??


-----Original Message-----
I'm not sure what you mean, but I use VS.2002/2003 and C#
and intellisense
is instant. I'm not sure how it could be any faster.


.
 
There's no way to enable background compilation in C#. We have talked about
it currently, but given our current architecture, we think it will be very
slow in large projects or solutions. Since we can't get a good solution that
way, we've elected not to do it until we can rearchitect to make it work
well for all projects.

I'm not sure when that will happen, but it's definitely something that's
important to do.

--
Eric Gunnerson

Visit the C# product team at http://www.csharp.net
Eric's blog is at http://blogs.gotdotnet.com/ericgu/

This posting is provided "AS IS" with no warranties, and confers no rights.
Tobias Lekman said:
Nicholas,

Thanks for that explanation. I can see why then, as the
background compiler is not part of C#? Is there a way of
enabling background compilation?

I noticed that if I put in

AddressBook a = new AddressBook();

I get a blue squiggly, which I take means "warning"? Is
there any way to prematurely recieve warnings, maybe by
adjusting warning levels?

Thanks,

Tobias

-----Original Message-----
Tobias,

VB has a background compilation mode which aids Intellisense (I
believe). This is probably why you see this speed differential (although I
will side with Morten and agree that the times are almost instant, and I've
never had a problem with the Intellisense in C#). Until the C# IDE has such
a feature, I wouldn't count on the Intellisense getting any better.

Also, the squiggly for an unknown type is a function of the background
compiler in VB, not of Intellisense.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Tobias Lekman said:
OK,

If I have, for example, declared a variable as

AddressBook a = new AddressBook;

it will take till I recompile for the IDE to put the
sqiggly for Unknown Type (say that AddressBook is not
declared in same NS). This would happen IMMEDIATELY in VB,
if I declared it as

Dim a As New AddressBook

If your IDE is instant, is there a setting to prioritize
or boost Intellisense performance??


-----Original Message-----
I'm not sure what you mean, but I use VS.2002/2003 and C#
and intellisense
is instant. I'm not sure how it could be any faster.


.
 
Eric Gunnerson said:
There's no way to enable background compilation in C#. We have talked about
it currently, but given our current architecture, we think it will be very
slow in large projects or solutions. Since we can't get a good solution that
way, we've elected not to do it until we can rearchitect to make it work
well for all projects.

I'm not sure when that will happen, but it's definitely something that's
important to do.

Good thing to hear. It would be of use to C# developers, like edit and
contiue might be(in some cases), I think there are alot of other features
that should get the serious work before adding these features in.
--
Eric Gunnerson

Visit the C# product team at http://www.csharp.net
Eric's blog is at http://blogs.gotdotnet.com/ericgu/

This posting is provided "AS IS" with no warranties, and confers no rights.
Tobias Lekman said:
Nicholas,

Thanks for that explanation. I can see why then, as the
background compiler is not part of C#? Is there a way of
enabling background compilation?

I noticed that if I put in

AddressBook a = new AddressBook();

I get a blue squiggly, which I take means "warning"? Is
there any way to prematurely recieve warnings, maybe by
adjusting warning levels?

Thanks,

Tobias

-----Original Message-----
Tobias,

VB has a background compilation mode which aids Intellisense (I
believe). This is probably why you see this speed differential (although I
will side with Morten and agree that the times are almost instant, and I've
never had a problem with the Intellisense in C#). Until the C# IDE has such
a feature, I wouldn't count on the Intellisense getting any better.

Also, the squiggly for an unknown type is a function of the background
compiler in VB, not of Intellisense.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

OK,

If I have, for example, declared a variable as

AddressBook a = new AddressBook;

it will take till I recompile for the IDE to put the
sqiggly for Unknown Type (say that AddressBook is not
declared in same NS). This would happen IMMEDIATELY in VB,
if I declared it as

Dim a As New AddressBook

If your IDE is instant, is there a setting to prioritize
or boost Intellisense performance??


-----Original Message-----
I'm not sure what you mean, but I use VS.2002/2003 and C#
and intellisense
is instant. I'm not sure how it could be any faster.

--
Using M2, Opera's revolutionary e-mail client:
http://www.opera.com/m2/
.



.
 
Back
Top