Code Templates Preferences

Opens the Code Templates preference pageMagik > Code Style > Code Templates preference page lets you configure the format of newly generated code and comments.

The page contains code templates that are used by actions that generate code. Templates contain variables that are substituted when the template is applied. Some variables are available in all templates, some are specific to templates.

Action

Description

Import...

Imports code templates from the file system.

Export...

Exports all selected code templates to the file system.

Export All...

Exports all code templates to the file system.

Edit...

When Preview tab is active than opens Edit Template dialog to edit currently selected code template.
When Default Values tab is active than opens Edit Default Value dialog to edit currently selected variable default value.

Code Templated preference page

Code Template Variable Default Values preference page

Edit Template dialog

The following fields and buttons appear in the dialog:

Field/Button

Description

Description

A description of the template

Pattern

The template pattern.

Insert Variables...

Displays a list of pre-defined template specific variables.

Edit Default Value dialog

The following fields appear in the dialog:

Field

Description

Variable

A name of variable which default value is edit

Default Value

Default value of variable.

Related reference

Magik editor
Magik editor preferences
Templates preferences