Code Templates Customization

Top  Previous  Next

The Code Templates section of the Options window allows you to customize the code templates used by the Code Templates feature:

code_templates_customization

This dialog window is used to create or modify a code template:

code_template

For each code template you can enter the following properties:

  • Description: a friendly name for the code template.
  • Shortcut: a combination of keystrokes to insert the code template directly into source code instead of using a window to select the code template from a list.
  • Text: the content of the code template. It can include predefined variables or user-defined variables, as explained below.

The template can include predefined variables, which will be replaced by the proper values when inserting the template into the source code. See Predefined Variables.

The template can include also user-defined variables which can have any name and that you type in the editable combobox. Their values will be asked when you insert the code template into source code.

Remarks:

  • Predefined and user-defined variables use the "{" and "}" characters as delimiters. If you want to use these characters in your code template, use the "\" escape character before the first "{" delimiter.

See Also:

Code Templates

Predefined Variables