Ontological Reciprocity
Contributions to Our Influences

ReSharper Tip of the Day: Custom Live Templates

Monday, June 30, 2008 7:44 AM

In R#’s option menu scroll down the Templates section and click the Live Templates node. Click on the User Templates node to see the user templates that are already created. Then click the Create Template toolbar item:

clip_image002

Type the abbreviation you want to use, a description of the template and the template text. There is a help doc to help you with the syntax and keywords of their scripting language (http://www.jetbrains.com/resharper/documentation/help20/Templates/LiveTemplates/editLive.html)

clip_image004

Now when you type the abbreviation in the code it will see your template, and by pressing Tab it will complete the code for you.

clip_image006

clip_image008

 


Feedback

No comments posted yet.


Post a comment