参考教程: IDEA给类和方法配置注释模板(参数换行显示)
类注释:
*
* Description: $description$
$params$
* @Return: $returns$
* @Author: wudi
* @Date: $date$ $time$
*/
方法注释:
*
* @Description: $description$
$params$
* @Return: $returns$
* @Author: wudi
* @Date: $date$ $time$
*/
Abbreviation填写 *
变量表
param:
groovyScript("def result=''; def params=\"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList(); for(i = 0; i < params.size(); i++) {if(i==0){result+='* @param ' + params[i] + ((i < params.size() - 1) ? '\\n' : '')}else{result+=' * @param ' + params[i] + ((i < params.size() - 1) ? '\\n' : '')}}; return result", methodParameters())
returns:
groovyScript("def returnType = \"${_1}\"; def result = '* @return: ' + returnType; return result;", methodReturnType());
|