vscode 安装 KoroFileHeader
// 文件头部注释
"fileheader.customMade": {
"Descripttion":"",
"version":"",
"Author":"sueRimn",
"Date":"Do not edit",
"LastEditors":"sueRimn",
"LastEditTime":"Do not Edit"
},
//函数注释
"fileheader.cursorMode": {
"description":"",
"param":"",
"return":""
},
cursorTip 改为 ctrl + alt + t
直接搜索对应的fileheader、cursorTip名字,然后加上对应的快捷键即可。
"fileheader.configObj": { //快速添加文件头部注释和函数注释
"createFileTime": true, // 设置为true则为文件新建时候作为date,否则注释生成时间为date
"autoAdd": true, // 自动生成注释
"language": {
"py": {
"head": "'''",
"middle": "@",
"end": "'''"
},
"h/hpp/cpp": {
"head": "/*** ", // 统一增加几个*号
"middle": " * @",
"end": " */"
}
},
"annotationStr": {
"head": "/*",
"middle": " * @",
"end": " */",
"use": true // 设置自定义注释可用
},
},
"fileheader.cursorMode": { // 快速注释函数 ctrl+alt+t
"description": "", // 函数描述
"Author": "wujiacheng", // 作者
"Date": "Do not edit", // 创建时间
"param ": "", // 函数参数
"return": "", // 函数输出
// "LastEditTime": "Do not edit", // 最后一次修改的时间
// "LastEditors": "wujiacheng" // 修改人员
},
"fileheader.customMade": { // 快速注释文件头部 ctrl+alt+i
"Description": "", // 文件描述
"Author": "wujiacheng", // 作者
"Date": "Do not edit", // 创建时间
"LastEditTime": "Do not edit", // 最后一次修改的时间
"LastEditors": "wujiacheng" // 修改人员
}