IntelliJ IDEA
 
2024.3
Get IntelliJ IDEA

Share file templates

Last modified: 11 February 2024

When you create or modify a file template, you do it in one of the following scopes (determined by the Scheme parameter under Editor | File and Code Templates):

  • Default: file templates created at the IDE level. These templates are available in all projects that you open with the current IDE instance. Use them as your personal templates that you prefer regardless of the specific project. IntelliJ IDEA stores global templates in the IDE configuration directory under fileTemplates.

  • Project: file templates specific for the current project. These templates are available to everyone who works on this project. IntelliJ IDEA stores them in the project folder under .idea/fileTemplates.

If you have file templates available at the IDE level (Default scheme), you can share them using Settings Sync or by manually exporting them.