1. Install the plug-in KoroFileHeader
##2. Open the settings
Click the settings button in the lower left corner of vscode, select "Settings", and then enter "fileheader"
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:
3. Use
(1) File header comment
Shortcut keys: crtl alt i (window), ctrl cmd t (mac)
Generate style As follows:
(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:
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