Applies to new module-info.java files that are created by invoking New | module-info.java in the Project tool window.

This built-in template is editable. Along with Java expressions and comments, you can also use the predefined variables (listed below) that will then be expanded like macros into corresponding values.

It is also possible to specify custom variables. Custom variables use the following format: ${VARIABLE_NAME}, where VARIABLE_NAME is a name for your variable (for example, ${MY_CUSTOM_FUNCTION_NAME}). Before the IDE creates a new file with custom variables, you see a dialog where you can define values for custom variables in the template.

By using the #parse directive, you can include templates from the Includes tab. To include a template, specify the full name of the template as a parameter in quotation marks (for example, #parse("File Header.java").
Predefined variables take the following values:
${MODULE_NAME}   Name of the module in which a new module-info.java file is created
${USER}   System login name of the current user
${DATE}   Current system date
${TIME}   Current system time
${YEAR}   Current year
${MONTH}   Current month
${MONTH_NAME_SHORT}   First 3 letters of the current month name (Jan, Feb, and so on)
${MONTH_NAME_FULL}   Full name of the current month (January, February, and so on)
${DAY}   Current day of the month
${HOUR}   Current hour
${MINUTE}   Current minute
${PROJECT_NAME}   Name of the current project