Sort Code Elements

Top  Previous  Next

The Sort Code Elements feature allows you to rearrange the code elements (classes, procedures, properties, interfaces, etc.) of a source code file sorting them by name, scope, kind, etc. or manually.

MZ-Tools offers the following ways to show the Sort Code Elements window:

  • The MZ-Tools | Other Utilities | Sort Code Elements... menu.
  • The MZ-Tools | Sort Code Elements... context menu of a code window.
  • The Other Utilities | Sort Code Elements... menu on the MZ-Tools toolbar.
  • The keyboard shortcut associated with the MZTools6_VSXXXX.SortCodeElements command.

The Sort Code Elements window is the following:

SortCodeElements

In this window, you can:

  • Rearrange the code elements manually using the buttons with the up and down arrows or the Control + Up arrow and Control + Down arrow keys of the keyboard to move the selected code element.
  • To apply a predefined sorting defined in the Corporate Options window, Sort Code Elements section.
  • To view a code element in the source code window behind the Sort Code Elements window.

When you accept the dialog window, the changes are applied to the source code of the file. After the changes are applied, if you are not satisfied with the new order you can undo the action with the Edit | Undo menu.

Remarks:

  • This feature is not available for the C++ language.

See Also:

Sort Code Elements Options

Keyboard Shortcuts Options