Skip to content

[Feature request] - Add option in config which will comment code along with surrounding lines #479

Open

Description

@ljudina

I use this plugin intensively and one thing would be handy for commenting block of codes and that is adding one blank line in comment above and below code selected for commenting. This way i can manipulate easier with a block of comment. It would be ideal to add to config for example following option:

    comment_block = {
        --- Insert empty line in comment block above, set 0 to disable
        above_lines = 1,
        --- Insert empty line in comment block below, set 0 to disable
        below_lines = 1,
    },

So the following code block

if var = true {
    do_someting
}

would be commented like this

/*
if var = true {
    do_someting
}
*/

I believe that this would be appreciated for many developers.

BR

Activity

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

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