Eclipse 新类自动生成注释

来源:互联网 发布:北京正规排名优化企业 编辑:程序博客网 时间:2024/05/22 17:01

Eclipse 新类自动生成注释

Eclipse中设置在创建新类时自动生成注释 

windows-->preference 
Java-->Code Style-->Code Templates 
code-->new Java files 
编辑它 
${filecomment} 
${package_declaration} 
/** 
* 类说明 
* @author  sunney
* @version V1.0  创建时间:${date} ${time} 
*/ 
${typecomment} 
${type_declaration} 


新建类时即可出现。 


  1. package test;  
  2. /**  
  3. * 类说明  
  4. * @author  zhaoguoli 
  5. * @version V1.0  创建时间:2009-8-1 下午02:50:14  
  6. */   
  7. public class Test {  
  8.   
  9.     /** 
  10.      * 方法描述: 
  11.      * @param args 
  12.      */  
  13.     public static void main(String[] args) {  
  14.           
  15.     }  
  16. }  
0 0
原创粉丝点击