CTRL_SHIFT_S,在Live Templates中新增一个TemplateGroup,然后再新建两个模板,如下图:
/** * @Title: * @ClassName: $PackageName$.$ClassName$.java * @Description: * * @author: KeyBa * @date: $DATE$ $TIME$ * @version V1.0 */
/** * @Title: * @methodName: $methodName$ $param$ * @return $returns$ * @Description: * * @author: KeyBa * @date: $date$ $time$ */
原文:https://www.cnblogs.com/liehen2046/p/10597527.html