Editor save actions

The Save Actions feature allows for selected actions to occur automatically when a file is saved. The actions that are performed are defined by the Save Actions preference.

You can specify save actions for PL/I source files and include files separately. If save actions are enabled, the actions that are performed during a save are defined by the Formatter preference.
  • For PL/I files, the save actions relate to indentation, capitalization, and line length. You can select whether all formatting options or just the capitalization options are automatically performed when you save a file. Additionally, the remove white space action can be performed.
  • For include files, the save actions include uppercase of include file code and comments and remove white spaces from the end of a text line.
When you save a file in the PL/I Editor, the following sequence occurs:
  1. Real-time syntax checking is completed.
  2. Formatting is applied to the file.
  3. Trailing white spaces are removed.
  4. Lines exceeding the specified length are identified.
  5. File contents are saved.
  6. Preprocessor statements are identified.
A progress bar shows the status of the save process.

After the save action is complete, a single Undo command can be used to remove all formatting and white-space removal changes.