Member Organization

Member Organization Rules are configured in the Editor | All Languages | Organize Members options page.


When you execute Member Organization, the CodeRush splits members into groups. Each group corresponds to a member organization rule and consists of members that match its grouping rules. The sort order of members within a group is configured for each member organization rule individually, whereas the order of the groups is similar to the order of member organization rules in the list on the left.

You can configure the number of empty lines between groups. The buttons near the list on the left enable you to create, remove, and re-arrange rules, put rules into regions, and add comments between rules.

Select a rule to edit it on the right. Each member organization rule consists of the following elements:

  • Rule name.
  • Number of lines between members.
  • Grouping rules.
  • Sorting rules.

Grouping rules are designed to configure what kind of members will be grouped together by the rule.

Sorting rules are designed to configure the order of members in each group.


Rule schemes are designed to configure several different configurations and quickly switch between them. This can be helpful if you work on several projects with different standards.

Rule Creation Example

Follow the steps below to create a rule for non-public enumerations:

  • Use the Add Rule button on the left to add a new rule to the bottom.
  • Use the Move Up and Move Down buttons to position the members that follows the rule.
  • Enter the rule name to the Rule name field on the right. In this case, the name will be Non-Public Enumerations.
  • Configure grouping:

    • Set the Node Kind item to Enum.
    • Switch Kind to Visibility in the drop-down list above.
    • Focus the Node Kind item.
    • Use the And button to create the And group and put the Node Kind (focused) and Visibility (new) items there.
    • Expand the newly-created And group and set the Visibility to Public.
    • Focus the Visibility item.
    • Use the Not button to create the Not group and put the Visibility (focused) item there.
    • Expand the Not group and check that you have the following filter.


  • Configure sorting according to your needs or leave it as is.
  • Use OK or Apply to save changes.
  • Test your new configuration.