1、安装vscode-fileheader插件
点击左下角齿轮搜索:vscode-fileheader
2、配置
在设置中搜索fileheader 配置以下三个选项:
"fileheader.Author": "Cong.Bu",
"fileheader.LastModifiedBy": "Cong.Bu"
Fileheader: Tpl
3、使用
window系统使用Ctrl+Alt+i,mac系统使用control+option+i即可在文件顶部生成
自己的Fileheader: Tpl配置参数:
---\r\nlayout: article\r\ntitle: "「xxx」title"\r\ndate: {createTime} +0800\r\nkey: python-lajihuishou-{updateTime} \r\naside:\r\n toc: true \r\ncategory: [software, python, stnotes] \r\ntags:\r\n python \r\nauthor: {author} \r\n--- \r\n \r\n<span id='head'></span>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n-------------------\r\n[返回顶部](#head)\r\n{:.warning}