files:template

File Templates

File templates are files, with default pattern content, used to “pre-fill” newly created documents.

Selection of the file template is done based on the extension of new document and name of the template: editor searches for a file with same extension and name “default” in the directory of file templates. To find directory where file templates are located select File→New→Manage File Templates (usually <user-directory>\templates).

New File Template

You can have different templates for the same extension, you can use built-in variables inside for filling default values, you can skip using of the file template by keeping Ctrl pressed when creating a new file.

Because contents of file templates are preprocessed, you need to escape special characters as % → %% same was as it done when defining code templates.

Configuration

If you want to change default templates directory, you can do this by direct modification of xml setting file.