vscode使用插件来添加文件说明和函数说明——42header——psioniq File Header——koroFileHeader

 

 

 

 

 安装号以后,设置快捷键如下:

 

同时需要根据自己的需要的修改json文件

// 文件头部注释
	"fileheader.customMade": {
		"Description": "",
		"version": "",
		"Author": "liming",
		"Date": "Do not edit",
		"LastEditors": "liming",
		"LastEditTime": "Do not Edit"
	},
	//函数注释
	"fileheader.cursorMode": {
		"name": "",
		"description": "",
		"param": "",
		"return": "",
		"other": "",
	},
	"psi-header.templates": [
		{
		  	"language": "*",
		  	"template": [
			"FileName: <<filename>>",
			"Remark: <<filename>>",
			"Project: <<projectname>>",
			"Author: <<author>>",
			"File Created: <<filecreated('dddd, Do MMMM YYYY h:mm:ss a')>>",
			"Last Modified: <<dateformat('dddd, Do MMMM YYYY h:mm:ss a')>>",
			"Modified By: <<author>>"
		  	]
		}
	],
	
	"42header.username": "NLT",
	"42header.email": "NL@nlt.com",
	"explorer.confirmDelete": false,

  

posted @ 2019-12-21 15:17  wdliming  阅读(1049)  评论(0编辑  收藏  举报