Given a similar situation ↓ how to comment uncommented lines and uncomment commented ones?
printf("Line 1\n");
printf("Line 2\n");
// printf("Line 3\n");
// printf("Line 4\n");
Expected result: ↓
// printf("Line 1\n");
// printf("Line 2\n");
printf("Line 3\n");
printf("Line 4\n");
The result I get when I select these 4 lines and press gc: ↓
// printf("Line 1\n");
// printf("Line 2\n");
// // printf("Line 3\n");
// // printf("Line 4\n");
I think gc should toggle comments. To comment everything g> is already available...
Given a similar situation ↓ how to comment uncommented lines and uncomment commented ones?
Expected result: ↓
The result I get when I select these 4 lines and press
gc: ↓I think
gcshould toggle comments. To comment everythingg>is already available...