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,

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM