Skip to content

comment visual selection without trailing comma #280

Description

@dragonxlwang

Hello,

An example that I have

void func(
    T1 t1,
    T2 t2,
    T3 t3);

where that if I want to comment out the t2, because it's not used in the function definition. With visual selection of text t2 without the trailing comma "," and comment with gc, what I saw is

void func(
    T1 t1,
    T2 //t2,
    T3 t3);

But expected behavior is:

void func(
    T1 t1,
    T2 /* t2 */,
    T3 t3);

Is there a good way to achieve the expected result? Thanks!

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