Formatting Literal parameters of a C# code snippet
c#, code-generation, code-snippets
Solution
Unfortunately there seems to be no way. Snippets offer amazingly limited support for transformation functions as you can see.
You have to stick with the VS standard solution, which is to write two literals: one for the property name, and the other for the member variable name.
Problem
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 :)