Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating syntax by using meaningful names #8

Open
adeel41 opened this issue Dec 10, 2014 · 1 comment
Open

Generating syntax by using meaningful names #8

adeel41 opened this issue Dec 10, 2014 · 1 comment

Comments

@adeel41
Copy link
Contributor

adeel41 commented Dec 10, 2014

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.

@ulex
Copy link
Owner

ulex commented Dec 10, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants