Templates are a structured description of coding patterns that occur in the source code. Magik editor supports the use of templates to fill in commonly used source patterns. Templates are inserted using Content Assist (Ctrl+Space).
Templates can contain template variables. Variables mark the editable locations. They can be resolved to a specific value, when the template is evaluated in its context. They can also provide a list of alternative proposals valid for the given location.
Many common templates are already defined. These can be viewed with the Magik > Editor > Templates preference page. You can also create your own templates or edit the existing ones.
User Defined Template Variables