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
 Autotext
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dmoney
Junior Member

11 Posts

Posted - Dec 18 2006 :  5:16:37 PM  Show Profile  Reply with Quote
I have an autotext entry that looks like this:

public $end$string $selected$ { get { return _$selected$; } set { _$selected$ = value; } }

I'd like to be able to hilight a list of private strings

IE:

private string _test = "";
private string _test2 = "";

and have it strip out everything up until the _ and everything after the first space and create a public string using the above autotext.. for each line.

That make any sense? Is that possible?

sean
Whole Tomato Software

USA
2817 Posts

Posted - Dec 18 2006 :  9:31:06 PM  Show Profile  Reply with Quote
With your own autotext, that is not possible.

But, have you looked at the VA refactorings? Specifically, the Refactor Encapsulate Field autotext item (named 'Refactor Encapsulate Field')?

VA refactorings don't work on multiple items. You would have to invoke Encapsulate Field on each member individually. But it will strip that leading underscore when coming up with $GeneratedPropertyName$. You can modify the va autotext item to be a single line if that's your preference.
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