Skip to content

Conversation

@IchiiDev
Copy link
Contributor

Changes

I implemented a new configuration field for a custom header override. If set, it will replace the regular Epitech header for the one set in the config and adapt it to fit the languages specifications.

The configuration is an array of string:

{
    "epitech-c-cpp-headers.customHeader": [
        "HEADER LINE 1",
        "HEADER LINE 2",
        "HEADER LINE 3",
        "..."
    ]
}

It also includes placeholders that will be replaced upon generation such as %FILENAME%, %FILEPATH%, %PROJECTNAME%, %DESCRIPTION%
More placeholders can be implemented in the future by editing the following:
https://github.com/IchiiDev/epitech-c-cpp-headers/blob/6ab07cb192afedccccd6c222da350c775d3f1f67/src/generators.ts#L61

Why ?

This can be useful for side projects where a header is wanted but the Epitech format doesn't feel right to use. Instead of using another extension, we can now override the default header and keep using the shortcuts and keybinds we are used to.

@IchiiDev
Copy link
Contributor Author

@Hirevo any news regarding PR reviews ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant