eclipse添加类模板注释

简述:

window -> preference -> Java ->  Code Style  -> Code Template -> Code -> New files


添加格式诸如:

${filecomment}
${package_declaration}
/**
 * Package: ${package_name}
 *
 * File: ${file_name} 
 *
 * Author: ${user}   Date: ${date}
 *
 * Copyright @ ${year} Corpration Name
 * 
 */
${typecomment}
${type_declaration}

最后显示如下:

package com.anialy.controller;
/**
 * Package: com.anialy.controller
 *
 * File: d.java 
 *
 * Author: anialy   Date: 2013-7-3
 *
 * Copyright @ 2013 Corporation Name
 * 
 */
public class d {

}
 
 

纯模板

/**
 * @date ${date}
 *
 * @author anialy
 *
 * @Description: ${todo} 
 *
 **/






你可能感兴趣的:(eclipse添加类模板注释)