类文件注释:
File and Code Templates ---> Files 选择class ----> Includes -----> File Header:
/**
* @ClassName ${NAME}
* @description:
* @author: ${USER}
* @time: ${DATE} ${TIME}
*
*/
方法注释:
Live Templates: ---> "+" -----> Template Group ----> add Live Temple ---->
abbreviation: *
Description: 自定义
Template text:
*
* @description:
$params$
* @return: $returns$
* @author: $user$
* @date: $date$ $time$
*/
Expand with: 选择 Enter
下面的Application 选择 Java 全选
Edit variables:
params:groovyScript("if("{_1}".replaceAll('[\\[|\\]|\\s]', '').split(',').toList(); for(i = 0; i < params.size(); i++) {result+=' * @param ' + params[i] + ((i < params.size() - 1) ? '\n' : '')}; return result}", methodParameters())
returns: methodReturnType()
user:user()
data:date()
time:time()
网友评论