美文网首页
vscode+APIDOC-TP根据注释自动生成API文档插件的

vscode+APIDOC-TP根据注释自动生成API文档插件的

作者: 张大娃创业笔记 | 来源:发表于2020-12-24 10:56 被阅读0次
    {
        // Place your snippets for php here. Each snippet is defined under a snippet name and has a prefix, body and 
        // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
        // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the 
        // same ids are connected.
        // Example:
        "ymfun": {
            "prefix": "ymhead",
            "body": [
                "/**",
                " * @title 基础的注释方法",
                " * @desc 一个很基础的接口注释解析能力",
                " * @author 张疯子",
                " */"
            ],
            "description": "头部注释代码块"
        },
        "ymhead": {
            "prefix": "ymhead",
            "body": [
                "/**",
                " * @title 基础的注释方法",
                " * @desc 一个很基础的接口注释解析能力",
                " * @author 张疯子",
                " * @url /api/test",
                " * @method GET",
                " * @tag 测试 基础",
                " * @header: name:Authorization require: 1 default: desc:Token",
                " * @param name:username type:string require:1 default: desc:参数说明",
                " * @return name:id type:int desc:参数说明",
                " */"
            ],
            "description": "接口注释代码块"
        }
    }
    

    相关文章

      网友评论

          本文标题:vscode+APIDOC-TP根据注释自动生成API文档插件的

          本文链接:https://www.haomeiwen.com/subject/yptmnktx.html