本文共 2010 字,大约阅读时间需要 6 分钟。
1、
修改eclipse的全局用户名
在eclipse.ini 中添加 -Duser.name=jangle
2、
文件 codetemplates.xml 用于在Windows-> preferences ->Java -> code style -> code templates 进行导入:
/** * @return the ${bare_field_name} */ /** * @param ${param} the ${bare_field_name} to set */ /** * ${tags} */ /** * */ /** * @author ${user} * @time ${date} ${time} * ${tags} * */ /** * */ /** * * @author ${user} * @time ${date} ${time} * ${tags} */ /** * @author ${user} * * ${tags} */ /** * ${tags} * ${see_to_target} */ ${filecomment}${package_declaration}/** * @author ${user} * @time ${date} ${time} * */${typecomment}${type_declaration} // ${todo} Auto-generated catch block${exception_var}.printStackTrace(); // ${todo} Auto-generated method stub${body_statement} ${body_statement}// ${todo} Auto-generated constructor stub return ${field}; ${field} = ${param};
owner:
/** * @return the ${bare_field_name} */ /** * @param ${param} the ${bare_field_name} to set */ /** * ${tags} */ /** * */ /** * @author ${user} * @email jangle@jangle.xyz * @time ${date} ${time} * ${tags} * */ /** * */ /** * * @author ${user} * @time ${date} ${time} * ${tags} */ /** * @author ${user} * * ${tags} */ /** * ${tags} * ${see_to_target} */ ${filecomment}${package_declaration}/** * @author ${user} * @email jangle@jangle.xyz * @time ${date} ${time} * */${typecomment}${type_declaration} // ${todo} Auto-generated catch block${exception_var}.printStackTrace(); // ${todo} Auto-generated method stub${body_statement} ${body_statement}// ${todo} Auto-generated constructor stub return ${field}; ${field} = ${param};
转载地址:http://ofsvb.baihongyu.com/