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"来查看都有哪些内置变量。

2、在已有类上添加注释时,自动带上作者、时间:
windows-->preference 
 Java-->Code Style-->Code Templates 
 Comments-->Types 
同样,编辑上述内容
                










