That could also work but maybe that's even another option ;-)
That's because when I'm writing code I actually like those commented out lines to stand out a bit from the rest.
So personally speaking, I'd prefer the '//'s to appear at the start of the line (just as it is already) but in the case that the commented out line or lines are having leading whitespace the toggle feature should still understand this and execute the "uncomment" action instead of "comment" action on top of the commented out line(s).
What I currently get due to the interplay of "VAX toggle comment" and "CodeMaid Code Formatter" is something like this:
Step 1: Starting with this snippet
int calculate(int a, int b) {
int result = 0;
result = 42;
return result;
}
Step 2: Toggle line with VAX
int calculate(int a, int b) {
int result = 0;
// result = 42;
return result;
}
Step 3: Saving the file (CodeMaid Code Formatter kicks in by doing this)
int calculate(int a, int b) {
int result = 0;
// result = 42;
return result;
}
Step 4: Changed my mind, going to uncomment the same line again using VAX toggle line -> problem
int calculate(int a, int b) {
int result = 0;
// // result = 42;
return result;
}
And this is kind of annoying. I hope this step-by-step procedure makes it more clear what I mean. :-)