vscode 高效率开发插件一(代码注释)

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

插件名:koroFileHeader

  • 配置项:
    setting中搜索:FileHeader
// 头部注释,默认设置:{'Author':'your name','Date':'Do not edit','LastEditors':'your name','LastEditTime':'Do not edit','Description':'file content'}
"fileheader.customMade": {}
// 在光标处插入函数注释,默认配置:{'description':'','param':'','return':''}
"fileheader.cursorMode": {}
  • 演示
// 文件头部注释
 /*
  * @Description: 
  * @Author: 
  * @Date: 2018-10-15 20:59:57
  * @LastEditors: 
  * @LastEditTime: 2018-10-15 20:59:57
  */
 // 函数注释
 /**
  * @description: 
  * @param {type} 
  * @return: 
  */
  • 快捷键:
window:ctrl+alt+t,mac:ctrl+cmd+t
  • 文件保存会自动更新时间(LastEditTime)
发布了19 篇原创文章 · 获赞 19 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/an_xinyu/article/details/88737158