. Topicala Page Index Token

A Journal about the experiences I have developing little applications in C#, Perl, Html and Javascript and talking about things new things that I use. Always Geeky; Always Nerdy; Always poor Grammer!

I am a Software Analyst Developer working in Southport, England but living in Liverpool. I develop mainly in C# and ASP.Net. I have been developing comercial software for several years now. I maintain this site (hosted at SwitchMedia UK) as a way of exploring new technologies (such as AJAX) and just generally talking about techie geek issues. This site is developed through a host of Perl scripts and a liberal use of Javascript. I enjoy experimenting with new technologies and anything that I make I host here.

Quick Search

Web www.kinlan.co.uk

Friday, May 25, 2007

Resharper Live Template for Default Constructor

I have created a simple Resharper Live Template for saving typing time when you want to create a default constructor.

The basic templzate is:
Abbreviation: dc
Description: Create a Default Constructor
Available: everywhere
Template Text:
public $CLASSNAME$()


Template Variables:
Value: Containing type name
Editable Occurence: false

See the image below as an example:

Topicala Tags:
Resharper, Live Templates

Comments: [Add New]

Why not just Alt-Ins, Enter?

By Ilya Ryzhenkov, at Friday, May 25, 2007 9:49:00 AM

Good Point! Didn't realise that was a short cut.

My only argument is dc [Tab] is easier to type.

By Paul Kinlan, at Friday, May 25, 2007 10:02:00 AM

Also, does I don't belive Alt-ins Enter is available in VS2003 and I think Live templates are in Resharper 2 onwards.

By Paul Kinlan, at Friday, May 25, 2007 10:05:00 AM