Settings中
File > Other Settings > Default Settings … > Editor > File and Code Templates
配置方式
也可以写死:
/**
*
* @author yourname
* @date ${DATE} ${TIME}
*/
In this template, you can specify a code fragment to be included into file templates (Templates tab) with the help of the #parse directive. One template can be shared by several file templates. Along with static text, code and comments, you can also use predefined variables that will then be expanded like macros into the corresponding values.
Predefined variables will 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
${