Home  >  Article  >  Development Tools  >  How to automatically add header comments in vscode

How to automatically add header comments in vscode

王林
王林Original
2020-01-10 15:22:595389browse

How to automatically add header comments in vscode

Install the plug-in KoroFileHeader

How to automatically add header comments in vscode

Open settings

How to automatically add header comments in vscode

In the lower left corner of vscode Click the Settings button in the corner, select "Settings", and then enter "fileheader"

File header comment: Fileheader:custom Made

How to automatically add header comments in vscode

Click "In setting. json", enter the following settings and save, then restart vscode to update the settings

How to automatically add header comments in vscode

// 文件头部注释
    "fileheader.customMade": {        
    "Descripttion":"",        
    "version":"",        
    "Author":"sueRimn",        
    "Date":"Do not edit",        
    "LastEditors":"sueRimn",        
    "LastEditTime":"Do not Edit"
    },

Use shortcut keys: crtl alt i (window), ctrl cmd t (mac)

The generated style is as shown in the figure:

How to automatically add header comments in vscode

Recommended related article tutorials: vscode tutorial

The above is the detailed content of How to automatically add header comments in vscode. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn