Automatically add copyright banner to VS code

Is there an easy way to configure VS Code to add a custom Copyright banner to a file? I thought to use a code snippet . Is there a better way to achieve the same? Thank you

+9
source share
3 answers

To do this, there is an extension called a comment to the file header .

Installation

Open the command palette by pressing F1 , type ext install , then press Enter and find the extension of the comment to the file header .

configuration

By default, you do not need to install anything. It will detect most programming languages ​​for the corresponding comment syntax. But if you want, you can set your own templates in Preferences - User Settings . Please refer to the extension documentation for more information.

Hope this helps !!

+16
source

there are more extensions available. he has more options

Psioniq file header

to establish

press ctrl + P and paste the following ext install psioniq.psi-header

customize your header using File->Preference->Settings->User Settings

0
source

there are more extensions available. he has more options

Psioniq file header

to establish

press ctrl + P and paste the following ext install psioniq.psi-header

customize your header using File->Preference->Settings->User Settings

0
source

All Articles