1. 安装 "KoroFileHeader" 插件
首先,在 VScode 中搜索并安装名为 "KoroFileHeader" 的插件。你可以通过在扩展商店中搜索插件名称来找到并安装它。

2. 进入 VScode 设置页面
点击 VScode 左下角的设置图标,然后选择 "设置",进入 VScode 的设置页面。

3. 编辑 setting.json 文件
在设置页面中,使用搜索框输入 "fileheader",然后点击 "在 setting.json 中编辑"。

4. 添加设置项到 setting.json
在打开的 setting.json 文件中,将以下 JSON 代码添加到其中:

保存设置文件。
至此,设置已完成
使用快捷键操作
1、添加文件头部注释。
- Windows:Ctrl + Win + I
- macOS:Ctrl + Cmd + I
效果如下:

2、添加函数注释。
- Windows:Ctrl + Win + T
- macOS:Ctrl + Cmd + T
效果如下:
