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

阅读 45

2022-06-16

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)

0 0 举报