Creating a formatting profile

  1. On the Window menu, select Preferences.

    The Preferences dialog box is displayed.

  2. Select Micro Focus > COBOL > Code Style > Formatter.

    The Formatter pane is displayed.

  3. Click New.

    The Preferences Profile Creation dialog box is displayed.

  4. In the Profile name field, type a name for the profile; this name must be unique to the profile names currently in the workspace.
  5. In the Initialize with profile field, select an existing profile on which to base the initial values.
  6. If you intend to configure the profile preferences now, select Open the edit dialog now; otherwise, the profile will be created with the same values as the profile you selected in the previous field.
  7. Click OK.

    If Open the edit dialog now was selected, the Edit COBOL Formatting Preferences dialog box is displayed.

  8. Edit the values, as explained in COBOL Formatter preferences, and then click OK.

    The profile settings are saved.

  9. Select Automatically format on save to apply formatting behavior when you save your code. This setting persists for any active profile.
    Note: The Source Format option updates the Preview window to use the selected format; this is just for preview purposes, and does not affect your code when formatted.
  10. To use the profile the next time you invoke formatting from the COBOL editor, ensure it is selected as the Active profile, and then click Apply and Close.

Any profiles that you create can be exported to other workspaces, or to other users on other machines.

To use the active profile when in the COBOL editor, see To format COBOL source code.