Snippets

Lucas Correia Automatic copyright headers in VS Code

Created by Lucas Correia last modified

Instructions

  1. Install psioniq File Header
  2. Edit preferences and open settings.json
  3. Add the configuration & template
  4. Use the command "Header insert" or "ctrl-alt-H, ctrl-alt-H" to add a header to a file.
{
"psi-header.config": {
    "forceToTop": true,
    "autoHeader": true,
    "copyrightHolder": "ftrack"
},
"psi-header.lang-config": [{
    "language": "*",
    "begin": "",
    "end": "",
    "prefix": ""
}],
"psi-header.templates": [
    {
        "language": "*",
        "template": [
            "// :copyright: Copyright (c) <<filecreated('YYYY')>> <<copyrightHolder>>"
        ]
    },
    {
        "language": "python",
        "template": [
            "# :coding: utf-8",
            "# :copyright: Copyright (c) <<filecreated('YYYY')>> <<copyrightHolder>>"
        ]
    },
],
}

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.