如何让 Idea 不要格式化 javadoc 中的片段

打开 comments 中的格式化标签功能

在这里插入图片描述

在 comments 中设置不需要格式化的片段

    /**
     * @formatter:off
     * @api {post} /wx-login 登录
     * @apiVersion 1.0.0
     * @apiName 登录
     * @apiGroup 登录
     *
     * @apiParam {String} lastname          Mandatory Lastname.
     * @apiParam {String} country="DE"      Mandatory with default value "DE".
     * @apiParam {Number} [age=18]          Optional Age with default 18.
     *
     * @apiParam (Login) {String} pass      Only logged in users can post this.
     *                                      In generated documentation a separate
     *                                      "Login" Block will be generated.
     *
     * @apiParam {Object} [address]         Optional nested address object.
     * @apiParam {String} [address[street]] Optional street and number.
     * @apiParam {String} [address[zip]]    Optional zip code.
     * @apiParam {String} [address[city]]   Optional city.
     * @formatter:on
     */

成功!

原创文章 80 获赞 40 访问量 8万+

猜你喜欢

转载自blog.csdn.net/yangbo_hr/article/details/106117567
今日推荐