Rational Developer for System z

Creating templates for PL/I source files

Use the Templates preference page to create, edit, or remove code templates for the PL/I Editor.

About this task

The PL/I Editor supports the use of code templates to promote efficiency and consistency in creating commonly and frequently used blocks of code. The Templates preference page provides tools for creating, editing, removing, importing, and exporting code templates. Rational® Developer for System z® ships with a set of default templates that you can use as-is or edit to suit your needs.
To open the Templates preference page:
  1. Click Window > Preferences.
  2. Click + to expand the PL/I > Templates entry in the preferences list.
  3. Click Templates.
The Templates window contains the following fields:
Template table
Lists defined templates by Name, Context, Description, and Auto Insert option. The Context indicates the section of a source file in which the template is valid. The Auto Insert option indicates if the template is automatically inserted into a new source file. The check box beside the template name indicates if the template is enabled.
Preview
Shows the content of the template.

Procedure

Click a link for more information about completing each of the following tasks:


Feedback