zoukankan      html  css  js  c++  java
  • eclipse 注释模板设置

    方法注释模板

    /** 
     * @title: ${enclosing_method} 
     * @description:
     * ${tags} ${return_type}
     * @throws 
    */

    覆盖方法注释

    /*
     * @title ${enclosing_method}
     * @description ${todo}
     * ${tags} 
     * ${see_to_overridden} 
     * @date ${date}
     */

    类模板

    参考:https://www.cnblogs.com/zCuisf/p/9589085.html

    Window->Preference->Java->Code Style->Code Template 

    如图:

        

    文件(Files)注释标签:

    /**   
    * @Title: ${file_name} 
    * @Package ${package_name} 
    * @Description: ${todo}(用一句话描述该文件做什么) 
    * @author cuisf  
    * @date ${date} ${time} 
    * @version V1.0   
    */

    类型(Types)注释标签(类的注释):

    /** 
    * @ClassName: ${type_name} 
    * @Description: ${todo}(这里用一句话描述这个类的作用) 
    * @author cuisf  
    * @date ${date} ${time} 

    * ${tags} 
    */

    字段(Fields)注释标签:

    /** 
    * @Fields ${field} : ${todo}(用一句话描述这个变量表示什么) 
    */ 
    构造函数标签:

    /** 
    * <p>Title: </p> 
    * <p>Description: </p> 
    * ${tags} 
    */

    方法(Constructor & Methods)标签:

    /** 
    * @Title: ${enclosing_method} 
    * @Description: ${todo}(这里用一句话描述这个方法的作用) 
    * @param ${tags}    设定文件 
    * @return ${return_type}    返回类型 
    * @throws 
    */

  • 相关阅读:
    Delphi操作Excel大全
    一名Delphi程序员的开发习惯
    七维互联(www.7wei.com)
    Android开发数据库三层应用-DataSnap
    如何破解excel宏的密码
    让Delphi的DataSnap发挥最大效率
    使用 TRegistry 类[1]: 显示各主键下的项
    ini 文件操作记要(1): 使用 TIniFile
    Delphi经验总结(1)
    Delphi经验总结(2)
  • 原文地址:https://www.cnblogs.com/sheseido/p/14364666.html
Copyright © 2011-2022 走看看