Folding code blocks
When code folding is enabled, you can expand and collapse code blocks for
IFELSE, IF, ELSE, DO, SELECT, WHEN, OTHERWISE, PACKAGE, BEGIN, and
PROCEDURE statements.
Before you begin
- Open the Preferences window.
- Navigate to .
- Select Enable folding of code blocks.
Limitation: Code folding does not work if a file contains parser
errors or if tooling is disabled. For more information about tooling, see Getting started with the PL/I Editor.
About this task
The following screen capture shows a block of text that is collapsed, marked by +, and one that is expanded, marked by -.

A code block that has only one line of code after the initial line cannot be folded, as in this example:
