views:

149

answers:

1

I am looking for a keyboard short-cut to complete creating the default accessors for a property in a C# class.

Something like...
I start typing:

public int Id 

Then I press one or more keys, and I endup with:

public int Id { get; set; }
+8  A: 

The shortcut is the trigger "prop":

prop<tab><tab>int<tab>Id<tab>

and you end up with:

public int Id { get; set; }
x0n
It is also possible to get the old VS2005 version of the shortcut so that you can have the full getter and setters displayed instead of the short version.
Chris