How to use Code Templates in the DVT Eclipse IDE
Overview
Code templates are parameterized code snippets.
Combined with the embedded TODO annotations, this
capability enables users to easily follow the project
development guidelines.
Explore the design and verification tools: https://www.dvteclipse.com
Or request a license: https://www.dvteclipse.com/request-license
Details
The Code Templates View
The Code Templates view presents all the available templates, for language constructs, for UVM, or for commonly used assertions.
Using Templates via Drag and Drop
To use a template, drag and drop it into the editor. Press Tab and fill in the template parameters.
Using Autocomplete to Insert Code Templates
You can use Autocomplete to insert a code template. Type a few letters of the template name, press Ctrl + Space and pick the template from the proposals list.
Defining Your Own Templates
You can also define your own templates. Use ${}
to specify template parameters. All template parameters are in sync.
Creating a New File Using a Code Template
You can create a new file using a code template.