Code Cleanup is useful when your solution contains much code that needs refactoring. It analyzes the code contained in the current file, project or entire solution, and applies certain refactorings where required.
Current Code Formatting settings are also applied to code during cleanup.
To start the cleanup, click the Cleanup button in the DXCore Visualize toolbar or choose the appropriate item from the Solution Explorer context menu.
To specify the changes that Code Cleanup should apply to code, use the Rules options page. Below is a list of available changes.
The member organizer removes regions containing more than one member, regardless of the Remove All Regions rule availability.
Pay close attention to the Organize members item. This item has an additional options section that enables you to modify member organization rules as required. This section appears when you set focus to the Organize members checkbox on the Rules options page.
The member organizer groups code elements and sorts elements within groups. For example, the member organizer can create groups such as "Private fields", "Internal fields", "Public methods", etc. The member organizer can also sort group items by name, parameter count, Generic parameter count, and return type name. CodeRush Classic locates code element groups in the same order as they are listed on the options page.
The member organizer does not process files containing preprocessor directives, with the exception of #region and #endregion.