idea方法注释模板配置

类注释

/**
 * @Description: ${description}
 * @Author ccy
 * @Date ${YEAR}年${MONTH}月${DAY}日 ${TIME}
 */

方法注释

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

return: groovyScript("return \"${_1}\" == 'void' ? null : '\\r\\n * @return ' + \"${_1}\"", methodReturnType())

posted @ 2021-03-29 18:11  青样儿  阅读(81)  评论(0)    收藏  举报