0
点赞
收藏
分享

微信扫一扫

eclipse配置注释(作者,时间)

何晓杰Dev 2022-06-16 阅读 45

1、创建一个新类时,自动加上作者、时间注释:

windows-->preference 
Java-->Code Style-->Code Templates 
code-->new Java files 

编辑:

${filecomment}
${package_declaration}
/**
* @author : ${user}
* @date :${date} ${time}
*
*/
${typecomment}
${type_declaration}

可以通过“insert Variable"来查看都有哪些内置变量。

eclipse配置注释(作者,时间)_java

 2、在已有类上添加注释时,自动带上作者、时间:

windows-->preference 
Java-->Code Style-->Code Templates 
Comments-->Types 

同样,编辑上述内容


举报

相关推荐

0 条评论