Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 1272 thinks C# has templates
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Chris Nahr
Ketchup Master

92 Posts

Posted - Oct 06 2004 :  07:13:55 AM  Show Profile
Steps to reproduce in Visual Studio 2003:

1. Create new C# solution.

2. Type the following in a new line:
if (foo bar >)

3. Place the cursor in front of "bar" and type an opening angle bracket (less-than sign).

4. VAX pops up a type completion list, apparently thinking that I'm about to use a C++ template.

Now you might think, who would be so insane to type things like "(foo bar >)" in the first place? Well, this actually happens quite frequently when the original line was "(bar > foo)" and I'm reversing the direction of comparison via cut & paste...

Right now, template sensing should simply be turned off in C# mode. I guess you'll have a problem when C# 2.0 is released, though, which will have generics with angle brackets like C++.

How are the C++ users dealing with this issue, by the way? Do you simply never cut & paste around greater-than comparisons?

ivan
Ketchup Master

Russia
75 Posts

Posted - Oct 06 2004 :  09:25:56 AM  Show Profile
quote:
Originally posted by Chris Nahr

How are the C++ users dealing with this issue, by the way? Do you simply never cut & paste around greater-than comparisons?



Simple: VAX just doesn't show any completion lists when we do that ;)
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 06 2004 :  1:17:27 PM  Show Profile
Next build will not suggest C++ templates when editing C#.

case=350

Edited by - support on Oct 06 2004 1:35:46 PM
Go to Top of Page

Chris Nahr
Ketchup Master

92 Posts

Posted - Oct 08 2004 :  04:01:49 AM  Show Profile
As discussed in e-mail, this is actually a bug with the default IntelliSense of VS 2003, not VAX. Sorry!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000