Sebastian Oleński
Sebastian Oleński

Reputation: 538

Resharper generate auto-properties for code

I have a situation like that : enter image description here

is there any way to generate all of those properties at once rather then clicking on each one ?

Upvotes: 0

Views: 70

Answers (1)

Avrohom Yisroel
Avrohom Yisroel

Reputation: 9440

Whilst strictly an answer to what you asked, as R# can't do what you want, I find NimbleText (http://nimbletext.com/) to be extremely useful for this sort of thing.

You paste your C# into the top panel, add a template to the second panel, using things like $1, $2, etc for the data fields, and the resultant text appears in the third panel.

One of the most useful tools I've ever found, and free too!

Upvotes: 1

Related Questions