Home > Development Tools > VSCode > body text

How vscode automatically generates function comments and file header comments

王林
Release: 2019-12-06 16:59:19
Original
5525 people have browsed it

How vscode automatically generates function comments and file header comments

1. Install the plug-in KoroFileHeader

How vscode automatically generates function comments and file header comments

##2. Settings

How vscode automatically generates function comments and file header comments

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

How vscode automatically generates function comments and file header comments

File header comment: Fileheader:custom Made

Function comment :Fileheader:cursor Mode

Click on any "edit in setting.json", enter the following settings and save, then restart vscode to update the settings

How vscode automatically generates function comments and file header comments

// 文件头部注释
    "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":""
    }
Copy after login

3. Use

(1) file header comment

shortcut key: crtl alt i (window)

ctrl cmd t (mac) to generate the style as follows:

How vscode automatically generates function comments and file header comments

(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:

How vscode automatically generates function comments and file header comments

Recommended related article tutorials:

vscode tutorial

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!

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