Predefined template variables
RubyMine comes with a set of predefined template variables.
The available predefined file template variables are:
- ${PROJECT_NAME} - the name of the current project.
- ${FILE_NAME} - the name of the file that will be created.
- ${USER} - the login name of the current user.
- ${DATE} - the current system date.
- ${TIME} - the current system time.
- ${YEAR} - the current year.
- ${MONTH} - the current month.
- ${DAY} - the current day of the month.
- ${HOUR} - the current hour.
- ${MINUTE} - the current minute.
- ${PRODUCT_NAME} - the name of the IDE in which the file will be created.
- 4.5+ ${MONTH_NAME_SHORT} - the first 3 letters of the month name. Example: Jan, Feb, etc.
- ${MONTH_NAME_FULL} - full name of a month. Example: January, February, etc.
Custom template variables
In addition to the predefined template variables, it is possible to specify custom variables. If necessary, you can define the values of custom variables right in a template using the #set VTL directive.
For example, if you want to use your full name instead of your login name defined through the ${USER}, write the following construct:
#set( $MyName = "John Smith" )
If the value of a variable is not defined in the template, RubyMine will ask you to specify it when the template is applied.

