Inserting code templates into code

Use code templates to include frequently used blocks of code in a program.

Procedure

  1. Click the location where you want the code block. If you know the first few letters of the code block, you can type them.
  2. Press Ctrl+Spacebar.
    The template window opens with a list of available templates.
  3. To see a preview of the template, click the template name.
    A text box opens showing the content of the template
  4. Double-click a template name to include it in the source file.