I am really anal and would like to order class properties alphabetically / by type.
Is this possible using a pre-existing function in VS or a macro that can do this?
For example:
public string foo {get; set;}
public string bar {get; set;}
public int fong {get; set;}
public string loo {get; set;}
(if you want to order alphabetically)
public string bar {get; set;}
public int fong {get; set;}
public string foo {get; set;}
public string loo {get; set;}
or (if you want to order by type, then alphabeticall)
public string bar {get; set;}
public string foo {get; set;}
public string loo {get; set;}
public int fong {get; set;}
Many thanks!
source
share