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}


新建类时即可出现。


Java代码
  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. }  
posted @ 2009-08-05 17:12  sunney  阅读(1477)  评论(1编辑  收藏  举报