Editor Templates

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 Go to Magik Template preferences page Magik > Editor > Templates preference page. You can also create your own templates or edit the existing ones.

Related concepts

Templates variables

Related reference

Templates preferences
User Defined Template Variables
Edit menu
Content/Code Assist