IntelliJ IDEA 15.0 Help

Live Templates

In this section:


Live templates let you insert frequently-used or custom code constructs into your source code file quickly, efficiently, and accurately. They contain the predefined code fragments.

Live templates are stored in the following location:

  • Windows: <your home directory>\.<product name><version number>\config\templates
  • Linux: ~/.<product name><version number>/config/templates
  • OS X: ~/Library/Preferences/<product name><version number>/templates

Important notes

To create or edit the Live templates, use the Live Templates page of the Settings dialog.

Having created a custom live template, you can export all the live templates together with the other settings, and import them. Refer to the section Exporting and Importing Settings for details.

See Also

Last modified: 10 December 2015