eclipse中添加注释模板
步骤:
在eclipse中点击 Window—> Preference —> java —> Code Style —> CodeTemplates —> Comments 后选中下面一项点击Edit,进行添加
选中 " Window “下拉框中的” Preference "
1.Files:
/**
* @Title: ${file_name}
* @Description: TODO(描述)
* @author author
* @date ${currentDate:date('yyyy-MM-dd hh:mm:ss')}
*/
2.Types:
/**
* @ClassName: ${type_name}
* @Description: TODO(描述)
* ${tags}
* @author author
* @date ${currentDate:date('yyyy-MM-dd hh:mm:ss')}
*/
3.Fields
/**
* @Fields ${field} : TODO(描述)
* @author author
* @date ${currentDate:date('yyyy-MM-dd hh:mm:ss')}
*/
4.Constructors
/**
* @Title: ${enclosing_type}
* @Description: ${enclosing_type}构造函数
* ${tags}
* @author author
* @date ${currentDate:date('yyyy-MM-dd hh:mm:ss')}
*/
5.Methods
/**
* @Title: ${enclosing_method}
* @Description: TODO(描述)
* ${tags}
* @author author
* @date ${currentDate:date('yyyy-MM-dd hh:mm:ss')}
*/
6.Overriding methods
/**
* @Title: ${enclosing_method}
* @Description: TODO(描述)
* ${tags}
* ${see_to_overridden}
* @author author
* @date ${currentDate:date('yyyy-MM-dd hh:mm:ss')}
*/