Friday, December 18, 2015

Code Refactors: Align C# Auto Properties

Its feature is pretty self-explanatory, aligning C# auto properties.

If something like the following is written somewhere,

class CodeTester_AutoProperties_Before
private string name { get; set; }
internal double i { get; set; }
public static int HelloWorld { get; set; }
public DateTime HowAreYouMyFriends { get; set; }

        all the four auto properties selected, and the Align C# Auto Properties command is called up, the auto-properties will be aligned nicely like this:


No comments:

Post a Comment