Previous Topic Next topic Print topic


The PL/I Editor

The PL/I editor contains the following features to aid PL/I coding and editing:

Comments

To automatically insert comments in your PL/I source, click on a line of code in the editor or make a selection such as within the current line or across a few lines. Then click Comment out the selected lines, Comment out the selected lines, in the Text editor toolbar. This comments out the entire line or the selection, respectively.

To remove comments from a line of code or from a selection in the code, click Uncomment the selected lines, Uncomment the selected lines.

IntelliSense

IntelliSense provides basic support for writing PL/I code in the PL/I editor by providing editing features to help you write syntactically correct code and to look up available elements. You can use IntelliSense to complete words and to get parameter keywords.

To get suggestions that are in context with what you are typing in your code, press Ctrl + space. For example, if you are typing a PL/I statement and press Ctrl + space, the list of applicable items appears, with the best match for the statement you are typing highlighted in the IntelliSense pop-up. Any related keywords and templates using the highlighted statement also appear in the pop-up list. Pressing Ctrl + space inserts single matches in the code automatically.

IntelliSense only offers assistance for the variables and methods that are in scope based on the current cursor position. For variables and methods with ambiguous names, the string inserted is disambiguated.

There are no configuration settings for the IntelliSense support for PL/I.

Margins

The editor can automatically set margins based on the project type, such as PL/I mainframe subsystem projects that are configured to use -cics, -ims, or -mvs as the mainframe system with which the programs operate (see the System setting in the PL/I Compile Settings section of the PL/I tab in the project's properties).

You can configure the position of the margins on the PL/I tab in the project's properties. Click Show Advanced Directives, Show Advanced Directives, to display the advanced options, and use the Specify margins (-margins) field to configure the margins as required.

Open include files

You can open include files directly from the editor - right-click the line of code that contains the %include statement and click Open File. This opens the include file in a separate tab in the editor.

Syntax error reporting

The code you type is parsed continuously to identify errors. The errors are underlined with red squiggly lines and any unknown objects are underlined with blue squiggly lines. To view more information about an error, you can hover over the error in the editor to see an error message tool-tip.

By default, the errors do not appear in the Error List window. To configure the window to show them, go to Tools > Options > Text Editor > PL/I and set Show background syntax check errors in the Error List to True.

Previous Topic Next topic Print topic