7.2.1. Code Templates

Code templates allow you to insert custom code by typing in a text "shortcut". #develop can then insert your custom code in place of your shortcut To use the code templates, type the shortcut word for the template and press Ctrl+J . Your text will be replaced with the code template text.

You can access the code templates by selecting the Tools->Options item . In the Options dialog, select the Coding, Code Templates category. This will display the following dialog:

7.2.1.1. Adding a Code Template

To add a code template:

  1. Click the Add button to access the Edit Template dialog

  2. Enter a name and description for your template and click OK

  3. Add the code you want to have substituted for your shortcut word, and click OK

7.2.1.2. Editing a Code Template

To edit the code template's name and description:

  1. Select the code template to be modified, and click the Change button

  2. Update the name and description

  3. Click the OK button

To edit the code template's replacement text:

  1. Select the code template to be modified

  2. Update the text to be inserted

  3. Click the OK button

7.2.1.3. Deleting a Code Template

To remove a code template:

  1. Select the code template to be removed

  2. Click the Remove button