Back to Intellij Community

File Header.Java

java/java-impl/resources/fileTemplates/includes/File Header.java.html

2025.3-rc-21.2 KB
Original Source

| Contains a code fragment that can be included into file templates (the Templates tab) with the help of the #parse directive.
This built-in template is editable. Along with static text, code, and comments, you can also use the predefined variables that will then be expanded like macros into the corresponding values.
|

| Predefined variables take the following values: | | ${PACKAGE_NAME} | | Name of the package in which the new file is created | | ${USER} | | Current user system login name | | ${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. Example: Jan, Feb, etc. | | ${MONTH_NAME_FULL} | | Full name of the current month. Example: January, February, etc. | | ${DAY} | | Current day of the month | | ${DAY_NAME_SHORT} | | First 3 letters of the current day name. Example: Mon, Tue, etc. | | ${DAY_NAME_FULL} | | Full name of the current day. Example: Monday, Tuesday, etc. | | ${HOUR} | | Current hour | | ${MINUTE} | | Current minute | | ${PROJECT_NAME} | | Name of the current project |