views:

547

answers:

1

Is there any way that I can change how a Literal of a code snippet renders when it is used in the code that the snippet generates?

Specifically I'd like to know if I can have a literal called say, $PropertyName$ and then get the snippet engine to render "_$PropertyName$ where the first character is made lowercase.

I can't afford R#. Please help :)

+5  A: 

Unfortunatly there seems to be no way. Snippets offer amazingly limited support for tansformation functions as you can see.

You have to stick with the vs standard solution that is to write two literals, one for the property name, the other for the member variable name.

Caerbanog
Thanks! I couldn't find anything either, and the function attribute doesn't seem to be extendable (And has only 3 functions to choose from!?!)If only I could trigger the rename feature automatically after the snippet is done...
Michael Lang