Windows => preferences => java => code style => code templates => commdents
点击types,再点击edit。在pattern中添加
/**
* @author ${user}
* @version ${date}${time}
* ${tags}
*/
使用效果,在类上敲击 /** 并回车,得到下面结果
/**
*
* @author josion
* @version 2023年2月2日下午5:18:50
*/
方式二:导入
在这里点击import,选择文件codetemplates.xml,点击applyandclose即可
点击获取免费资源文件
使用时,敲击“/**”回车即可