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

How to automatically add header comments in vscode

王林
Release: 2020-01-10 15:22:59
Original
5442 people have browsed it

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"
    },
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template