tcomment_vim icon indicating copy to clipboard operation
tcomment_vim copied to clipboard

comment visual selection without trailing comma

Open dragonxlwang opened this issue 5 years ago • 0 comments

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!

dragonxlwang avatar Jan 06 '21 01:01 dragonxlwang