views:

302

answers:

1

I'm looking to get into some of the more advanced features of resharper tamplates. I know just enough to be dangerous by looking at some of the existing templates.

What are some of the more advanced features beyond using a variable name in between dollar signs and using $END$ to show where your cursor goes?

What are some good sources on Resharper templates?

+2  A: 

The Resharper PowerToys sample code has a project that demonstrates how to use the OpenAPI to create your own custom macro that can be assigned to any $variable$ in a template.

Another built in variable is $SELECTION$ which is handy for creating Surround With templates.

And here's the complete Resharper template authoring reference.

Josh Buedel