- On the
Window menu, select
Preferences.
The
Preferences dialog box is displayed.
- Select
.
The
Formatter pane is displayed.
- Click
New.
The
Preferences Profile Creation dialog box is displayed.
- In the
Profile name field, type a name for the profile; this name must be unique to the profile names currently in the workspace.
- In the
Initialize with profile field, select an existing profile on which to base the initial values.
- 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.
- Click
OK.
If
Open the edit dialog now was selected, the
Edit COBOL Formatting Preferences dialog box is displayed.
- Edit the values, as explained in
COBOL Formatter preferences, and then click
OK.
The profile settings are saved.
- 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.
- 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.