[ IntelliJ IDEA ]
1、生成文档注释
每次创建Class、Interface、Enum、AnnotationType类型文件,自动生成文档注释
具体步骤:顶部工具栏 File -> Other Settins -> Structure for New Project -> Editor -> File and Code Templates
/**
* @ClassName ${NAME}
* @Description:
* @Author ${USER}
* @Date: ${DATE} ${TIME}
* @Version 1.0
*/
2、生成方法注释
每次创建方法,使用 /** + Enter 生成方法注释
具体步骤:顶部工具栏 File -> Settins -> Editor -> Live Templates
注意:下图第一个by default expand with的快捷键方式改为Enter!!
注意:第一行不要改成/**不原会生成/**/**
*
* @Author $USER$
* @Description: $description$
* @Date: $time$ $date$
* @Param $param$
* @return $returns$
*/
user()
time()
date()
methodParameters()
methodReturnType()
最终效果: