Windows->Preference->Java->Code Style->Code Templates->Code->New Java file->Edit
原來的模板:
${filecomment}
${package_declaration}
${typecomment}
${type_declaration}
修改後:
${filecomment}
${package_declaration}
/**
* @author Xing,Ming
* @version ${date} ${time}
*/
${typecomment}
${type_declaration}
記錄了作者,文件生成時間,當時想加其它的自己加
說明:上述轉載自:http://touchmm.iteye.com/blog/1109751
ps:添加方法註釋
Windows->Preference->Java->Code Style->Code Templates->Comments->Methods->Edit
/**
*
* @param
* @return
* @throws
* ${tags}
*/