Template Dialog

Edit Template dialog

The following fields and buttons appear in the dialog:

Option Description
Name The name of the template.
Context The context determines where the template can be used and specifies the set of available pre-defined template variables.
Magik editor defines only one context: Magik Code Context Type. This context is available only in Magik code and it is possible to use it in the following types of code:
  • Magik Code
  • Magik Pragma
  • Magik Comments
Automatically insert If selected, code assist will automatically insert the template if there are no other proposals available at the caret position.
Description A description of the template, which is displayed to the user while choosing a template.
Pattern The template pattern.
Insert Variables... Displays a list of pre-defined context specific template variables.

Related concepts

Templates variables

Related reference

Templates preferences
Magik content assist
Code templates preferences
Code style preferences