settings live tempalte 创建template group
template text
**
* @description: $description$
$params$
$returns$
* @author: Landfill
* @date: $date$
*/
edit variables
使用groovyScript 自动生成参数
groovyScript("if("${_1}".length() == 2) {return '';} else {def result=''; def params="${_1}".replaceAll('[\\[|\\]|\\s]', '').split(',').toList();for(i = 0; i < params.size(); i++) {if(i<(params.size()-1)){result+=' * @param ' + params[i] + ' : ' + '\n'}else{result+=' * @param ' + params[i] + ' : '}}; return result;}", methodParameters());
groovyScript("def returnType = "${_1}"; def result = ' * @return : ' + returnType; return result;", methodReturnType());
/mt tab 调用 enter也可以调用