To format COBOL source code with Code Cleanup

Within the COBOL editor, you can choose to format a COBOL source file and apply some code cleanup changes:

  1. Open a source file in the editor.
  2. Click Edit > Advanced , and then click Format filename with Code Cleanup.

    The IDE formats the code according to the options in Tools > Options > Text Editor > Micro Focus COBOL > Code Style > Formatting. It also updates the code with any preferences set in Tools > Options > Text Editor > Micro Focus COBOL > Code Style > Code Cleanup.

    If you use an EditorConfig file to provide the code style for your sources, the IDE uses the settings specified in it. See Sharing Code Style Settings with an EditorConfig File for details.