vsCode 注释插件 KoroFileHeader

添加文件头、函数注释(文件类型无限制)

插件名:koroFileHeader

  • 配置项:
    setting中搜索:FileHeader
  • 快捷键:
  • 头部注释 Ctrl + Alt + i
  • 函数注释 Ctrl + Alt + t
    // 头部注释,默认设置:{'Author':'your name','Date':'Do not edit','LastEditors':'your name','LastEditTime':'Do not edit','Description':'file content'}
    //更改配置
"fileheader.customMade": {
    "Author": "小方块的世界",
    "Date": "Do not edit",
    "LastEditors": "小方块的世界",
    "LastEditTime": "Do not edit",
    "Description": "file content"
}

// 在光标处插入函数注释,默认配置:{'description':'','param':'','return':''}
"fileheader.cursorMode": {
    "description": "",
    "param": "",
    "return": ""
}

// 生成头部注释
/*
 * @Author: 小方块的世界
 * @Date: 2021-05-15 10:27:01
 * @LastEditors: 小方块的世界
 * @LastEditTime: 2021-05-15 10:27:01
 * @Description: 定义每个FormItem组件 
 */
// 生成函数注释
/**
 * @description: 
 * @param {type} 
 * @return {type} 
 */
原文地址:https://www.cnblogs.com/codebook/p/14773019.html