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 adding comments to vscode

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

Share

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

This article mainly introduces the method of adding comments to vscode, which has certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

1. Search for koroFileHeader in the Vscode extension Store and click install

2. The setting of comment template

Search for fileheader in user preferences, and the default configuration is:

"fileheader.customMade": {} / / header comment "fileheader.cursorMode": {} / / function comment

Custom template:

In the user settings, search for fileheader, copy the default configuration, modify the configuration, and restart takes effect.

After modification, the notes are as follows:

/ / File header comments / * * @ version: * @ Company: BAT * @ Author: OBKoro1 * @ Date: 2018-10-15 20:59:57 * @ LastEditors: OBKoro1 * @ LastEditTime: 2018-10-15 20:59:57 * / / function comments / * * @ name: * @ test: test font * @ msg: * Param {type} * @ return: * /

3. Use

File header comments:

Header comments can be generated by using the shortcut key: window:ctrl+alt+t/mac:ctrl+cmd+t in the current editing file.

Function comments:

Place the cursor on the function line or the blank line above the function and use the shortcut key window:ctrl+alt+t,mac:ctrl+cmd+t to generate function comments.

In fact, function comments can be generated anywhere in the file, which you need to control.

Thank you for reading this article carefully. I hope it will be helpful for everyone to share the method and content of adding notes on vscode. At the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

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