vscode 注释插件 korofileheader的配置

打开设置,搜索fileheader

 

 

 

 在配置文件中添加:

"fileheader.customMade": {    //此为头部注释
        "Description": "",
        "Version": "2.0",
        "Autor": "lhl",
        "Date": "Do not edit",
        "LastEditors": "lhl",
        "LastEditTime": "Do not edit"
    },
    "fileheader.cursorMode": {  //此为函数注释
        "description":"",
        "param": "",
        "return": "",
        "author":"lhl"
    },
    "fileheader.configObj": {
        "autoAdd": true, // 默认开启自动添加头部注释,当文件没有设置头部注释时保存会自动添加
        "autoAlready": true, // 默认开启
        "prohibitAutoAdd": [
            "json",
            "md"
        ], // 禁止.json .md文件,自动添加头部注释
        "wideSame": false, // 设置为true开启
        "wideNum": 13 // 字段长度 默认为13
    }

ctrl+alt/window+i   添加文件头注释

ctrl+alt/window+t   添加函数注释

 

posted @ 2022-03-26 15:47  萌小心情懂  阅读(135)  评论(0编辑  收藏  举报