Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ljudina opened this issue Jul 23, 2024 · 0 comments

Comments

@ljudina
Copy link

ljudina commented Jul 23, 2024

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

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

No branches or pull requests

1 participant