zoukankan      html  css  js  c++  java
  • Eclipse/MyEclipse注释模版自主配置

    话说Eclipse和MyEclipse这两个IDE都一样,然后根据IDE的标签写出自己喜欢的代码注释风格:(这是我喜欢的注释风格)

    File(文件):

    /**
     * @title ${file_name} 
     * @description     
     * @create             ${date} ${time} By maoyun
     * @package         ${package_name}
     * @copyright         Copyright (c) 2011-2012      
     * @version         $$Id$$
     * NUBB-Java-Project
     */

    Types(类型):

    /** 
     * 
     * @description
     * 
     * @classname     ${type_name} 
     * @author         maoyun<maoyun@nubb.com>
     * @date         ${date} ${time} 
     * @version     1.0
     */

    Fields(字段):

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

    Constructor(构造方法):

    /** 
     * @Fields ${tag} : ${todo}
     */

    Method(方法):

    /** 
     *  
     * @description
     * 
     * @title  ${enclosing_method}
     * @param  ${tags}
     * @return ${return_type}
     */

    Overriding Method(重载/覆盖方法)

    /* (非 Javadoc) 
     * <p>{point}</p>
     * 
     * <p>description: </p> 
     * @title ${enclosing_method} 
     * ${tags} 
     * ${see_to_overridden} 
     */

    Delegate Method(代理方法)

    /**
     * ${tags}
     * ${see_to_target}
     */

    Setters(set方法)

    /**
     * @param ${param} the ${bare_field_name} to set
     */

    Getter(get方法)

    /**
     * @return the ${bare_field_name}
     */
  • 相关阅读:
    文本标记
    第一个HTML文档
    HTML入门
    bootstrap fileinput 文件上传
    DPDK rte_hash 简述
    glib学习笔记-基本知识
    linux常用网络命令
    libevent学习过程
    C语言 singleton模式
    oracle命令行导出、导入dmp文件
  • 原文地址:https://www.cnblogs.com/xmaomao/p/3014545.html
Copyright © 2011-2022 走看看