The method of automatically adding author comments to newly-built files by vscode
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.