设置JAVA注释模板

设置JAVA注释模板  

找到注释模板所在的地方:window -->Preference -->Java -->Code Style -->Code Template   
然后展开Comments 节点就是所需要设置注释的元素了:  



文件(Files)注释标签:  

/**     
* @Project: ${project_name}  
* @Title: ${file_name}  
* @Package ${package_name}  
* @Description: ${todo}   
* @authorshenyanghong [email protected]  
* @date ${date} ${time}  
* @Copyright: ${year}   
* @version V1.0    
*/  

类(Types)注释标签(类的注释):  

/**  
* @ClassName ${type_name} 
* @Description ${todo}  
* @author shenyanghong [email protected] 
* @date ${date} 
* ${tags}  
*/  


字段(Fields)注释标签:  

/**    
* @Fields ${field} : ${todo}  
*/   


构造函数标签:  

/**    
* 

Title:

*

Description:

* ${tags} */ 方法(Constructor & Methods)标签: /** * @Title: ${enclosing_method} * @Description: ${todo} * @param ${tags} * @return ${return_type} * @throws */ 覆盖方法(Overriding Methods)标签: /* (非Javadoc) *

Title: ${enclosing_method}

*

Description:

* ${tags} * ${see_to_overridden} */ 代表方法(Delegate Methods)标签: /** * ${tags} * ${see_to_target} */ getter方法标签: /** * @return ${bare_field_name} */ setter方法标签: /** * @param ${param} 要设置的${bare_field_name} */

你可能感兴趣的:(设置JAVA注释模板,ClassNam,eclipse)