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
 Code snippets appear in "override" suggestions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Nels_P_Olsen
Senior Member

USA
47 Posts

Posted - Aug 25 2008 :  11:09:50 AM  Show Profile  Reply with Quote
I'm using build 1647 with C# in VS2008.

Inside a class, when I type "override", I get the expected suggestions plus a bunch of inappropriate code snippets. The suggestions dropdown defaults to Equals(object obj), and is followed by:

false
float
for () { ... }
for loop forward
for loop reverse
foreach () {}
...

The inappropriate code snippet suggestions go away if I disable VA X.

- Nels

feline
Whole Tomato Software

United Kingdom
18950 Posts

Posted - Aug 27 2008 :  11:15:06 AM  Show Profile  Reply with Quote
I am seeing the same thing here. If you have turned on:

VA Options -> Advanced -> Listboxes -> Allow Acronyms and Shorthand

then it is very easy to filter out / ignore these VA snippets.

The bigger question is should they be here. Clearly the ones you have listed here are not helpful, but what if you have defined a VA snippet that inserts a useful stub / default method for overriding a common operation? I can certainly make a case that this is useful behaviour, but I am not sure it is a good case

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000