Home  >  Article  >  Development Tools  >  How vscode automatically generates function comments

How vscode automatically generates function comments

王林
王林Original
2020-01-10 11:41:4624456browse

How vscode automatically generates function comments

1. Install the plug-in KoroFileHeader

How vscode automatically generates function comments

##2. Open the settings


How vscode automatically generates function comments

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

How vscode automatically generates function comments

File header comments: 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

3. Use

(1) File header comment

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

Generate style As follows:

How vscode automatically generates function comments

(2) Function comment

Shortcut keys: ctrl alt t (window), ctrl alt t (mac)

Function comments are not necessarily generated in the header. You can control them yourself

The generated style is as follows:

How vscode automatically generates function comments

Recommended related articles and tutorials:

vscode tutorial

The above is the detailed content of How vscode automatically generates function comments. 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