Eclipse修改类的注释模板

效果如图:

 设置要在下面中:

Window->Preferences->Java->Code Style->Code Templates
下Comments中是配置各部分的注释内容,Code中是配置是否使用这些注释,
比如:Comments中Files是配置类的开头处的注释内容,如:
/**
* CopyRight(c) 2017 YCKJ. All Rights Reserved
*/
Types是配置类名称上的注释内容,如:
/**
* 描述:
* @author ${user}
* @date ${date}
*
*/
user是当前用户信息,date是当前日期
Code里面主要看New Java Files中的信息:
${filecomment}
${package_declaration}

${typecomment}
${type_declaration}
filecomment对应Comments中的Files,typecomment对应Types。

原文地址:https://www.cnblogs.com/java-ty/p/11453124.html