1. Install the plug-in KoroFileHeader
##2. Settings Click the settings button in the lower left corner of vscode, select "Settings", and then enter "fileheader" File header comment: Fileheader:custom MadeFunction comment :Fileheader:cursor ModeClick on any "edit in setting.json", enter the following settings and save, then restart vscode to update the settings// 文件头部注释 "fileheader.customMade": { "Descripttion":"", "version":"", "Author":"sueRimn", "Date":"Do not edit", "LastEditors":"sueRimn", "LastEditTime":"Do not Edit" }, //函数注释 "fileheader.cursorMode": { "name":"", "test":"test font", "msg":"", "param":"", "return":"" }
(2) Function comments Shortcut keys: ctrl alt t (window), ctrl alt t (mac) function comments may not be generated In the head, control the generated style as follows: Recommended related article tutorials:
The above is the detailed content of How vscode automatically generates function comments and file header comments. For more information, please follow other related articles on the PHP Chinese website!