Toolbar icons
| Item | Tooltip | Description |
|---|---|---|
| Create Template | Click this button to create a new template in the currently opened tab. The button is available in the Templates and Includes tabs. |
| Remove Template | Click this button to delete the selected template. The button is available in the Templates and Includes tabs. |
| Copy Template | Click this button to create a copy of the selected template. The button is available in the Templates and Includes tabs. |
| Reset to Default | Click this button to restore an initial state for the selected template. The button is available only for modified templates. The names of the modified templates are shown in blue. |
Template settings and contents
| Item | Description |
|---|---|
| Name | In this text box, specify the name of the selected template. |
| Extension | In this text box, specify the extension for IntelliJ IDEA to detect files, where the selected template should be applied during creation. |
| Reformat according to style | Select this check box, to have IntelliJ IDEA reformat generated stub files according to the style defined in the Code Style dialog box. |
| Template text | Edit the template contents. You can use:
|
| Description | In this text box, provide some information about the template, its predefined variables, and the way they work. |
Tabs
| Tab | Description |
|---|---|
| Templates | The tab displays the available file templates. More file templates can be found on the Java EE tab. |
| Includes | The tab shows the templates of reusable fragments that can be included in file templates. |
| Code |
The tab displays built-in snippets, that is, templates for code fragments that IntelliJ IDEA can
generate in various typical situations, for example, for generating implemented
or overridden method bodies.
You can edit the existing snippets but you cannot create new ones. For any snippet that you have modified, the Reset button (link) is available in the upper right corner of the page which you can use to restore the initial state of the snippet. |
| Java EE |
The tab displays groups of Java EE-related and other templates.
The templates on this tab can be edited but cannot be removed. Creating new templates on this tab is not allowed. To restore the initial state of any of the modified templates, use the Reset button (link) in the upper right corner of the page. |

