myeclipse/eclipse方法和类的自动注解

设置新建类注释Window->preferences->java->code style ->codeTemplates->code->new Java files
->edit修改成

${filecomment}
${package_declaration}
/** 
* @className:${file_name}
* @classDescription:
* @author:yourname
* @createTime:${date} ${time}
*/
${typecomment}
${type_declaration}


结果:
package com.tudou.junit;
/** 
 * @className:AnonationTest.java 
 * @classDescription: 
 * @author:lizhuang
 * @createTime:2012-6-29 下午03:47:30
 */
public class AnonationTest {

}


你可能感兴趣的:(java,Date,File,Class)