Code Templates

You can define short names for predefined blocks of code called code templates. The short names are displayed in the Content Completion window if the word at cursor position is a prefix of such a short name. If there is no prefix at cursor position, that is the character at the left of cursor is a whitespace, all the code templates are listed.

Oxygen comes with a lot of predefined code templates but you can define your own code templates for any type of editor.

To obtain the template list you can use the Content Completion on request shortcut key (usually CTRL-SPACE) or the Code Templates on request shortcut key (CTRL-SHIFT-SPACE). The first shortcut displays the code templates in the same content completion list with elements from the schema of the document. The second shortcut displays only the code templates and is the default shortcut of the action Document > Content Completion > Show Code Templates .

The following variables can appear in a code template: