Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of automatically generating function comments by vscode

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail the method of automatically generating function annotations for vscode. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

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 comment: Fileheader:custom Made

Function comments: Fileheader:cursor Mode

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

3. Use

(1) Notes in the header of the file

Keyboard shortcuts: crtl+alt+i (window), ctrl+cmd+t (mac)

The generation style is as follows:

(2) function comments

Keyboard shortcuts: ctrl+alt+t (window), ctrl+alt+t (mac)

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

The generation style is as follows:

On vscode automatic generation of function comments on the method to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report