Skip to content

Does not support py file comment style #14

@ronak1009

Description

@ronak1009

I have python files.
I need to add headers to it.
Following is my settings for the extensions:

   "fileHeaderComment.parameter":{
        "*":{
            // "commentbegin": "/*",
            // "commentprefix": " *",
            // "commentend": " */",
            "company": "My Company.",
            "license_text" : [  "Contains trade secrets of My Company",
                "Copyright notice does not imply publication.",
                "Decompilation or disassembly of this software is strictly prohibited."]
        }
    },
    "fileHeaderComment.template":{
        "*":[
            "${commentbegin}",
            "${commentprefix} Copyright: ${company}, ${year}. All rights reserved.",
            "${commentprefix} ${license_text}",
            "${commentend}"
        ]
    }

On running the command the format of comment added is as follows:

'''
� Copyright: My Company, 2020. All rights reserved.
� Contains trade secrets of My Company.
�Copyright notice does not imply publication.
�Decompilation or disassembly of this software is strictly prohibited.
'''

The comments are written as strings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions