The editor provides the ability to use code templates. A code template is a block of frequently used source code that can be inserted automatically by using a particular key sequence. A '|' character is used in the template to indicate the required position of the cursor after the template has been expanded.

###### Editing code templates

To edit code templates, do the following:

- From the Edit menu, click Advanced then View Code Templates.

Code templates can either be expanded manually or automatically when the Space key is pressed.

###### Manually expanding a template

To expand a code template manually, do the following:

- Type a key sequence, for example the keys c followed by b for the comment block template.
- From the Edit menu, click Advanced then Expand Template or type Ctrl+J to expand the template.

###### Automatically expanding templates

To expand the template automatically, do the following:

- Ensure the Expand Templates On Space editor property is enabled.
- Type a key sequence, for example the keys c followed by b for the comment block template.
- Now type Space key to expand the template.