The method of automatically setting the idea annotation parameters

Many of which are said param of Expression configured online

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

/**
 * 用一句话描述此方法的作用
 * @author yupanpan
 * @date $date$ $time$
$param$
 * @return $return$
 */

In fact, there are step

Do not template content / ** * and as long as the top grid with the following:

*
 * 用一句话描述此方法的作用
 * @author yupanpan
 * @date $date$ $time$
$param$
 * @return $return$
 */

Templates set to * 

 

 

finally

In the method of the above " / ** " + the Tab key on the line, to see the effect of

Published 288 original articles · won praise 88 · views 430 000 +

Guess you like

Origin blog.csdn.net/ypp91zr/article/details/101292946