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