java code templates_myeclipse设置代码模板Code Templates

设置注释模板的入口:Window->Preference->Java->Code Style->Code Template

20180111003700125612.jpg

替换:codetemplates.xml即可

<?xml version="1.0" encoding="UTF-8" standalone="no"?>/**

* @Title: ${enclosing_method} <BR>

* @Description: ${todo} <BR>

* @return: ${field_type} <BR>

*/ /**

* @Title: ${enclosing_method} <BR>

* @Description: ${todo} <BR>

* @return: ${field_type} <BR>

*/ /**

* @Title: ${enclosing_type}

* @Description: ${todo}

* @param: ${tags}

* @throws

*//**

* FileName: ${file_name}

* @Description: ${todo}

* @author: gs-joe

* @version V1.0

* Createdate: ${date} ${time}

* Copyright: Copyright(C) 2016-2017

* Company xxxCompany.

* All rights Reserved, Designed By gs-joe

* Modification History:

* Date Author Version Discription

* ---------------------------------------------------------------------------

* ${date} gs-joe 1.0 1.0

* Why & What is modified:

*//**

* @ClassName: ${type_name}

* @Description: ${todo}

* @author: gs-joe

* @date: ${date} ${time}

*//**

* @Fields ${field} : ${todo}

*/ /**

* @Title: ${enclosing_method}

* @Description: ${todo}

* @param: ${tags}

* @return: ${return_type}

* @throws

*//**

* <p>Title: ${enclosing_method}</p>

* <p>Description: </p>

* ${tags}

* ${see_to_overridden}

*/ /**

* ${tags}

* ${see_to_target}

*/${filecomment}

${package_declaration}

${typecomment}

${type_declaration}

// ${todo} Auto-generated catch block

${exception_var}.printStackTrace();// ${todo} Auto-generated method stub

${body_statement}${body_statement}

// ${todo} Auto-generated constructor stubreturn ${field};${field} = ${param};

原文:http://www.cnblogs.com/gs-joe/p/7504398.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值