Property Code Snippet for Visual Studio 2005
In contrast to the default Visual Studio format, I prefer to format my properties like this with the associated variable beneath the property declaration and a comment above it <s>: /// <summary>/// OrderID Property/// </summary>public int OrderID{ get { return _orderID; } set { _orderID = value; }}private int _orderID; My partner in crime Rick Strahl (www.west-wind.com) wrote a blog post about a snippet he created do something similar which gave me the idea to do it to suit my own needs. Here’s what I’ve come up with: <?xml version=“1.0“ encoding=“utf-8“ ?><CodeSnippets xmlns=“http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet“> <CodeSnippet Format=“1.0.0“> <Header> <Title>prop</Title> <Shortcut>prp</Shortcut> <Description>Code snippet … Continue reading Property Code Snippet for Visual Studio 2005