title: Display Properties in Custom Order in Visual Studio Debugger
body: <p>In Visual Studio, is it possible to customize the order in which properties are displayed when inspected in the debugger?</p>
  
  <p>Here's an example of a class where I'd really like StartDate and EndDate to appear next to each other, even though they are separated alphabetically .</p>
  
  <p><img src="https://i.imgur.com/srpTyOf.png" alt="example"></p>
  
  <p>Other debugger options are customizable through attributes like the <a href="https://msdn.microsoft.com/en-us/library/system.diagnostics.debuggerdisplayattribute.aspx" rel="noreferrer"><code>DebuggerDisplayAttribute</code></a>, so I was hopeful that another such attribute would exist for DisplayOrder.</p>
  
  <pre class="lang-cs prettyprint-override"><code>[DebuggerDisplay("{Name}")]
  public class Rule
  {
      public string Name;
      public int MaxAge;
      public DateTime StartDate;
      public DateTime EndDate;
  }
  </code></pre>
  
  <p>In an <em>ideal world</em>, I'd like the ability to order the properties in the inspector in the order that I have defined on the class (even if that requires setting an debugger order attribute incrementally on each property) so the display would look like this:</p>
  
  <p><img src="https://i.imgur.com/zzm2hm0.png" alt="ideal debugger"></p>