code template自动添加注释设置

参考:https://www.cnblogs.com/zcleilei/p/6027653.html

设置注释模板的入口:Window->Preferences->Java->Code Style->Code Templates

Comments-->Files(Java文件注释)

/**
 *@Title: ${file_name} 
 *@Description: ${todo}
 *@Author: author
 *@Date: ${date} ${time}
 */

Comments-->Types(Java类注释)

/** 
 * @ClassName: ${type_name} 
 * @Description: ${todo}
 * @author: author
 * @date: ${date} ${time} 
 * 
 */

Comments-->Fields(类字段注释)

/**
 * 
 */

Comments-->Constructors(构造函数注释)

/**
 * ${tags}
 */

Comments-->Methods(Java方法注释)

/**
 * @Title: ${enclosing_method}
 * @Description: ${todo}
 * ${tags} ${return_type}
 */

Comments-->Overriding methods(重写方法注释)

/* (non-Javadoc)
 * ${see_to_overridden}
 */

Comments-->Delegate methods(代理方法注释)

/**
 * ${tags}
 * ${see_to_target}
 */

Comments-->Getters(Java Getter方法注释)

/**
 * @return the ${bare_field_name}
 */

Comments-->Setters(Java Setter方法注释)

/**
 * @param ${param} the ${bare_field_name} to set
 */

你可能感兴趣的:(eclipse)