Use this tab to add, delete, or modify code templates. Code Templates are abbreviations that you type into the code and that the editor expands into code blocks. The templates include placeholder values. After you expand a code template, you go through the expanded block and replace the placeholder values.
Select a language from the drop-down list to see the code templates available for that language. For each language you can do the following:
Modify a code template. Select a code template from the list. Type in the Expanded Text tab to modify the expanded code that the template produces. Type in the Description tab to modify the description of the code template.
Remove a code template. Select a code template from the list and click Remove to remove the code template.
Add a code template. Click New and type the abbreviation, expanded text, and description in the respective fields.
If you are writing a new code template or modifying an existing code template, see Code Template Syntax.
This tab also includes the following elements:
Expand Template On. Select the key or key combination that is used to expand code template abbreviations. By default, press Tab to expand an abbreviation. You can change this to Shift, Shift-Space, or Enter.
On Template Expansion. Select the formatting task that the IDE performs when you expand a code template abbreviation. By default, the IDE reformats the code. The IDE instead can only reindent the code or do no formatting.
Export/Import. Export code templates as a .zip archive, or import code templates from a .zip archive.