Reputation: 103358
I've previously used a shortcut for creating C# properties in Visual Studio 2010, but I cannot remember what this was.
If I was to type:
public string Foo
I could type a shortcut which would generate:
public string Foo { get; set; }
What is the shortcut to achieve something like this, in Visual Studio 2010?
Upvotes: 1
Views: 9792
Reputation: 498982
You are talking about code snippets - there are several built in.
For a auto-property just type prop
and tab. You will need to complete the property name and type.
Upvotes: 14