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 adding author comments to newly-built files by vscode

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article is about vscode's method of automatically adding author comments to newly created files. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

After clicking the plug-in button with the shortcut key shift+Cmd+X or the first step in the figure, enter fileheader in the input box and select the first one. Click the install button as shown in the second picture.

After the installation is successful, click the reload button to load the plug-in to take effect

Open the user settings file. The shortcut key for mac is Cmd+ comma. Enter fileheader as shown in the figure, edit and modify the configuration, and change the contents in the box in the second picture to your own name.

Restart the Visual Studio Code editor. Create a new empty file, press F1 function key or shift+cmd+P, enter fileheader and press enter to execute the command

The header comment information of the new file will come out, the modified file will be saved, and the modification time of the comment information will be updated.

Thank you for reading! On vscode to achieve new files automatically add author comments on the method to share here, I hope that the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

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