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
 Suggestions after #region in C#
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

JamesB
New Member

USA
2 Posts

Posted - Jun 18 2008 :  2:46:18 PM  Show Profile  Reply with Quote
Before I start, just a quick kudos to the VA team. We all love your product over at ArenaNet. ;)

I've noticed a mildly annoying tendency of VA to add suggestions after typing a #region in C# (VS 2008). Whenever I try to type:

#region Private Members

I instead get:

#region Private MemberwiseClone

because of an errant suggestion. I'm wondering why VA bothers to make suggestions in regions based on code. It seems like these should be treated similar to comments, where no suggestions are made.

If it's not possible to stop VA suggestions altogether in #regions, is there a way I can at least prevent this from happening in this particular case?

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 18 2008 :  4:53:18 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=426
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 18 2008 :  5:13:10 PM  Show Profile  Reply with Quote
In this particular case, you can add a snippet here:

VA Options -> Advanced -> Suggestions -> Edit VA Snippets (button)

1. Right click on C# root node
2. Select new
3. use "Members" for Title , Shortcut and for the fourth editbox.
4. Press OK

Now, when you type "Members", "Members" will be the default suggestion. (Note that this feature is case sensitive)
Go to Top of Page

JamesB
New Member

USA
2 Posts

Posted - Jun 18 2008 :  5:32:57 PM  Show Profile  Reply with Quote
That worked great as a quick fix. Thanks so much.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jan 27 2009 :  9:23:40 PM  Show Profile  Reply with Quote
case=426 is fixed in build 1715

Whole Tomato Software, Inc.
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