VsCode は、koroFileHeader を使用して作成者情報と関数コメントを構成します

1. koroFileHeaderプラグインをインストールする

ここに画像の説明を挿入します

2. settings.json ファイルを構成する

左下隅の設定—>設定—> @ext:oboro1.karafileheader を入力—> settings.json ファイルを開きます。
ここに画像の説明を挿入します
ファイルを開いた後:
必要な情報を変更します
ここに画像の説明を挿入します

{
    
    
    "fileheader.customMade": {
    
     // 此为头部注释     
        "Author": "xx", // 文件作者
        "Date": "Do not edit", // 文件创建时间
        "LastEditors": "Do not edit", // 最后编辑文件的人
        "LastEditTime": "Do not edit", // 文件最后编辑时间
        "Description": "", // 文件描述
        "FilePath": "Do not edit", // 文件在项目中的相对路径 自动更新  
    },
    "fileheader.cursorMode": {
    
     //此为函数注释
        "description":"", // 功能描述
        "param": "", // 传入参数
        "return": "", // 返回结果
        "author":"wuyue.nan" // 函数作者
    }
}

3. 作者の注釈情報をファイルに実装する

快捷键:ctrl + win + i      // 生成头部注释
快捷键:ctrl + win + t      // 生成函数注释
<!--
 * @Author: xx
 * @Date: 2022-09-28 15:24:31
 * @LastEditors: Do not edit
 * @LastEditTime: 2022-11-08 09:56:16
 * @Description: www
 * @FilePath: \interface-data\src\views\systemconfig\index.vue
-->

/**
 * @description: www
 * @return {*}
 * @author: wuyue.nan
 */

おすすめ

転載: blog.csdn.net/wang13679201813/article/details/127744544