DataGrip 2022.3 Help

File template variables

A file template can contain variables, which are replaced by their values when the template is applied. A variable is a string that starts with a dollar sign $ followed by the variable name. The variable name may optionally be enclosed in curly braces. For example: $MyVariable and ${MyVariable} are different notations of the same variable.

Predefined template variables

The following predefined variables can be used in file templates:




Current system date


Current day of the month


Dollar sign $. This variable is used to escape the dollar character, so that it is not treated as a prefix of a template variable.


Name of the new file


Current hour


Current minute


Current second


Current month


Full name of the current month (January, February, and so on)


First three letters of the current month name (Jan, Feb, and so on)


Name of the new entity (file, %class%, interface, and so on)


Name of your organization specified in the project settings


Name of the IDE (for example, DataGrip)


Name of the current project


Current system time


Login name of the current user


Current year

Last modified: 05 December 2022