ReSharper templates
Posted by Jens Pettersson on August 30th, 2010I would like to share my small but helpful collection of ReSharper templates. I use ReSharper templates a lot and most specifically while I’m writing tests/specifications or while creating mappings or any other repetitive task that can’t be DRY:ed out. For the moment I only have a couple of Live Templates for MSpec that I use while writing our BDD specifications, but I plan to update this as soon as I need a new template. I lost my old templates in the volcanic ash earlier this year…
This is one example of a template I use when creating a new MSpec class:
All this code given to me by writing spec and hitting tab. The duplication of the class name in the FolderSubject attribute is generated as I name my class and is used for our report generator.
Never mind the weird indentation under Establish and Because, it’s Visual Studios way of saying: I don’t like you.
You import the templates by going to ReSharper > Live Templates and then hitting the import-button.
You can get the templates from my Github repository. Feel free to contribute with your own ReSharper templates!
//J
Recent Comments