Idea 使用指南(个人向)
Appearance: Theme : Light
System Settings | Updates : off
Macros : save_reformating : command+s
General | Code Completion : Match case : off
Font : Font: Menlo; Size : 14; Line spacing : 1.2
Live Templates:
Add Template Group "MethodDIY" :
*(方法注释)
/**
*
*
$params$
* @return: $return$
* @author: suwen
* @time: $date$ $time$
*
*/
params=
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())
c(类注释)
/**
*
*
* @author: suwen
* @time: $date$ $time$
*
*/
Edit Macros : save_reformating : action : ReformatCode; SaveAll;
原文:https://www.cnblogs.com/esllovesn/p/12255383.html