打开File→Other Settings→Default Settings,选中File and Code Templates
设置如下:设置Class,Interface,Enum,AnnotationType都添加注释内容
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
#parse("File Header.java")
/**
* @author ${USER}
* @date ${DATE}
* @description
*/
public class ${NAME} {
}
自动添加方法注释
https://blog.csdn.net/jianghappyboy/article/details/80794552