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.
|
|
|