Eclipse/MyEclipse注释模版-自主配置
话说Eclipse和MyEclipse这两个IDE都一样,然后根据IDE的标签写出自己喜欢的代码注释风格:(这是我喜欢的注释风格)
File(文件):
/** * @title ${file_name} * @description * @create ${date} ${time} By maoyun * @package ${package_name} * @copyright Copyright (c) 2011-2012 * @version $$Id$$ * NUBB-Java-Project */
Types(类型):
/** * * @description * * @classname ${type_name} * @author maoyun<maoyun@nubb.com> * @date ${date} ${time} * @version 1.0 */
Fields(字段):
/** * @Fields ${field_type} ${field} : ${todo} */
Constructor(构造方法):
/** * @Fields ${tag} : ${todo} */
Method(方法):
/** * * @description * * @title ${enclosing_method} * @param ${tags} * @return ${return_type} */
Overriding Method(重载/覆盖方法)
/* (非 Javadoc) * <p>{point}</p> * * <p>description: </p> * @title ${enclosing_method} * ${tags} * ${see_to_overridden} */
Delegate Method(代理方法)
/** * ${tags} * ${see_to_target} */
Setters(set方法)
/** * @param ${param} the ${bare_field_name} to set */
Getter(get方法)
/** * @return the ${bare_field_name} */
写博客不仅是一种习惯,更是一种沉淀。