idea 模板变量
参考官方文档
Predefined template variables
The following predefined variables can be used in file templates:
| Variable | Description |
|---|---|
| $DATE} | Current system date |
| $DAY} | Current day of the month |
| $DIR_PATH} | Path to the directory of the new file (relative to the project root) |
| $DS} | Dollar sign $. This variable is used to escape the dollar haracter,so that it is not treated as a prefix of a template variable. |
| $FILE_NAME} | Name of the new file |
| $HOUR} | Current hour |
| $MINUTE} | Current minute |
| $SECOND} | Current second |
| $MONTH} | Current month |
| $MONTH_NAME_FULL} | Full name of the current month (January, February, and so on) |
| $MONTH_NAME_SHORT} | First three letters of the current month name (Jan, Feb, and so on) |
| $NAME} | Name of the new entity (file, %class%, interface, and so on) |
| $PRODUCT_NAME} | Name of the IDE (for example, PyCharm) |
| $PROJECT_NAME} | Name of the current project |
| $TIME} | Current system time |
| $USER} | Login name of the current user |
| $YEAR} | Current year |
低调做人,高调做事