IntelliJ IDEA 新建文件时,添加注释或者其他预定义文字 打开路径:File > Settings > Editor > File and Code Templates 或者打开Settings后搜索File and Code Templates如图代码如下 /** * @author ZhcChen * @since ${YEAR}-${MONTH}-${DAY} ${HOUR}:${MINUTE}:${SECOND} */