ZenSharp
ZenSharp copied to clipboard
Generating syntax by using meaningful names
Sometimes I forget the syntax which I need to type so I was wondering if it is possible to give a name to custom syntaxes and then us it. For example, when I am creating my entities, I declare the properties as public virtual but with a protected setter. The syntax would be ppvsFirstName+p but what if I can type entity property or something like that to generate the same code.
I'm not sure if I complete understand your problem, but maybe standart ReSharper live templates is what you need in this case.
What if just declare live template like
public virtual string $name$ {get; protected set; }
or you can do the same in ZenSharp if define rule like this
scope "InCSharpClass" {
other ::=
| "public virtual string "="entity" identifier " {get; protected set}; "
}
Main ZenSharp feature is availability to support dynamic set of templates managed by easy languange. I'm not understand what kind templates you want to create.