一、插件安装
-
插件名:koroFileHeader
-
插件安装
二、插件配置
- 打开配置文件
- 添加配置
- 配置参考:
//函数注释
"fileheader.cursorMode": {
"Function":"",
"Description":"",
"Input":"void",
"Output":"None",
"Return":"void",
"Others":"None",
},
//文件头注释
"fileheader.customMade": {
"custom_string_obkoro1_copyright": "Copyright (C), CVTE Electronics CO.Ltd ${now_year}.",
"File name":"",
"Author":"Gu Chunqi(guchunqi@cvte.com)",
"Version":"V1.0",
"Date":"",
"Description":"",
"Others":"None",
"History":"<time> <author> <version > <desc>",
},
"fileheader.configObj": {
"createFileTime": true,
"autoAdd":false, //关闭自动生成头部注释,使用快捷键手动添加
"language": {
"h/c/hpp/cpp": {
"head": "/******************************************************************************",
"middle": " * @",
"end": "*******************************************************************************/",
}
},
},
三、使用方法及效果
- 文件头注释(CTRL+ALT+I)
- 函数注释(CTRL+ALT+T)