Reputation: 5760
Please guide me what is short cut to generate full properties in Visual Studio 2008 ? Doing prop tab tab generates auto implemented properties but I am looking for short cut to generate full properties with get and set.
public string StringValue
{
get { return stringValue; }
set { stringValue = value; }
}
Upvotes: 2
Views: 844
Reputation: 499382
The snippet you are looking for is propfull
- see this list of built in snippets for C# (Visual Studio 2010). It did not exist in previous versions.
Since you are using Visual Studio 2008, you can create your own code snippets.
See Creating Code Snippets on MSDN.
Upvotes: 2
Reputation: 137547
The snippet to add a full property doesn't exist in VS 2008. propfull
was added in 2010.
But here is a link on how to add it, by adding another .snippet file:
Upvotes: 2