Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Autotext

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
dmoney Posted - Dec 18 2006 : 5:16:37 PM
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?
1   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Dec 18 2006 : 9:31:06 PM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000