eclipse中添加注释模板
下面为本人在eclipse中常用的注释模板,也是从网上找的推荐模板,仅为记录一下,也希望帮助到大家更好的规范代码
在eclipse中点击Window——>java——>Code Style——>CodeTemplates——>Comments
选中下面一项点击Edit
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')}
*/