idea设置方法注释模板

edit variables

 param的脚本

groovyScript("def result=''; def params=\"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList(); for(i = 0; i < params.size(); i++) {if(params[i] == '')return result;result+=' * @param ' + params[i] + ((i < params.size() - 1) ? ' \\n' : ' ')}; return result", methodParameters())

template text

*
 * @description $description$
 * @author yeweiqiang223
 * @version 1.0.0        
$param$
 * @return $return$
 * @updateTime $date$ $TIME$
 * @throws $throw$
 */

使用

在方法上面输入: /** + tab即可。

猜你喜欢

转载自blog.csdn.net/u014089832/article/details/108885754