1. 打开 File => Settings => Editor => File and Code Templates ====> Includer===>File Header
2. 设置默认备注信息 /**
* @Description: 类描述
* @date: ${YEAR}/${MONTH}/${DAY} ${TIME}
* @author: Zone
* @since JDK 1.8
**/ 3.新建类测试
4.常用模板
${PROJECT_NAME}项目名 TODO:文档待办事项 ${YEAR}年份 ${MONTH}月份 ${DAY}日 标签:IDEA,MONTH,File,YEAR,自带,DAY,备注 From: https://www.cnblogs.com/zyy820273015/p/17958487