VsCode 自动生成文件头部注释和函数注释
作者:互联网
1、安装插件KoroFileHeader
2.在vscode左下角点击设置按钮,选择“设置”,然后输入“fileheader”,
文件头部注释:Fileheader:custom Made
函数注释:Fileheader:cursor Mode
随便点击哪个"在setting.json"中编辑,输入以下设置后保存,然后重启vscode更新设置:
// 文件头部注释
"fileheader.customMade": {
"Descripttion":"",
"version":"",
"Author":"sueRimn",
"Date":"Do not edit",
"LastEditors":"sueRimn",
"LastEditTime":"Do not Edit"
},
//函数注释
"fileheader.cursorMode": {
"name":"",
"test":"test font",
"msg":"",
"param":"",
"return":""
}
3、使用
(1)文件头部注释
快捷键:crtl+alt+i(window),ctrl+cmd+t (mac)
(2)函数注释
快捷键:ctrl+alt+t (window), ctrl+alt+t(mac)
标签:函数,fileheader,VsCode,ctrl,注释,头部,alt 来源: https://www.cnblogs.com/qq166607/p/14878761.html