zoukankan      html  css  js  c++  java
  • 11. 设置注释模版

    设置路径: preferences - java - code style - code template -comments

    1、文件(Files)注释标签

    /**
     * Copyright © 2016 XXXXXXXX有限责任公司. All rights reserved.
     *
     * @Title: ${file_name}
     * @Project-Bundle: ${project_name}
     * @Package: ${package_name}
     * @Description: 控制层
     * @author: XXX.XX
     * @version: V1.0
     * @date: ${date} ${time}
     * Modification  History:
     * Date         Author        Version        Discription
     * ---------------------------------------------------------------------------
     * ${date}     xxx.xx       1.0             1.0
     */

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

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

    3、字段(Fields)注释标签:

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

    4、构造函数(Constructor)注释标签:

    /**
     * @Title: ${enclosing_type}
     * @Description: ${todo}
     * @param ${tags}
     * @throws
     */

    5. preferences - java - code style - code template -comments - methods

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

    6、覆盖方法(Overriding Methods)标签:

    /**
     * @Title: ${enclosing_method}
     * @Description:
     * ${tags}
     * ${see_to_overridden}
     */

    7、代表方法(Delegate Methods)标签:

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

    8、getter方法标签:

    /**
     * @Title: ${enclosing_method}
     * @Description: ${todo}
     * @return: ${field_type}
     */

    9、setter方法标签:

    /**
     * @Title: ${enclosing_method}
     * @Description: ${todo}
     * @return: ${field_type}
     */

    
    
     
     
  • 相关阅读:
    Java最常见的面试题:模块十一
    Java最常见的面试题:模块九和模块十
    Java最常见的面试题:模块八
    Java最常见的面试题:模块七
    【leetcode】跳跃游戏
    【leetcode】字母异位词分组
    【C++】STL各容器的实现,时间复杂度,适用情况分析
    【C++】如何使用GCC生成动态库和静态库
    【C++】C++中基类的析构函数为什么要用virtual虚析构函数?
    【leet-code】接雨水
  • 原文地址:https://www.cnblogs.com/zkx4213/p/9089224.html
Copyright © 2011-2022 走看看