Use templates for easier text entry
- Last Updated: April 17, 2021
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Templates are custom character sequences that the ABL Editor
automatically expands into ABL statements. Using editor templates, you can
facilitate programming tasks by reducing the amount of typing required. For example,
you can type "DVCH" to enter a template definition for a character variable into a
file: "DVCH" expands to DEFINE VARIABLE AS CHARACTER
NO-UNDO and positions the cursor after "VARIABLE" to allow you to enter
the variable name. The ABL Editor includes predefined macro definitions, referred to
as templates in the Eclipse environment, that automatically expand to more complex
strings. You can add, modify, and delete macros through the Templates preferences page.
- To use a template (macro) while working in an ABL source file, type the template name and press SPACE to expand it to the defined full string.
-
To manage the set of available templates, go to the Templates
(Macros) page in Editor preferences:
- Choose . The Preferences window appears.
- Choose . The Templates page appears. The page displays the list of existing templates.
- To modify a template, click Edit and make the desired changes. Click Apply to save your changes.
- At this page, you can also click New to create templates, click Import to add templates from other workspaces, or click Export to make templates available for use in other workspaces.