Type members layout - Insert comments

Hello,

is it possible to define the type members layout, so that a comment is inserted above a region, like this:


// methods

#region methods

...

#endregion

Best regards
Stefan

0
1 comment

Somewhat related to this topic.

I would think that an option using comments instead of region would be a nice addition.
For example if I want to "separate" public/private properties without using regions, it would be nice to be able to do something like below (in the Group node):

<Entry>
<Match>
<And>
<Access Is="public"/>
<Kind Is="property"/>
<Not>
<Kind Is="indexer"/>
</Not>
</And>
</Match>
   <Group Comment="Public propeties"/>
</Entry>

so I get something like:
class Foo {
  //Public properties
  public int prop1 { get; set; }
  //Private properties
  private int prop2 { get; set; }
}

etc.
Thanks.

0

Please sign in to leave a comment.