Join GitHub today
comment/uncomment with different select(highlight) direction #1419
However, if in step 2 we do "click from letter B, hold and drag highlight to letter A" (different highlight direction). Select "Edit-Comment-Comment Line". Result: both lines are correctly un-commented.
This actually happens to single line of code as well.
This happens even to the simplest file. It has nothing to do with the tabs/spaces as it happens even when no space/tabs before the characters. Note that at Step 2 above for "Use mouse cursor to select both lines", I meant to select everything including the added "//" from step 1.
I am not sure what your expected behavior for selecting lines of code with leading "//". For me, I expect the leading "//" being removed. In fact, when I highlighted from //A to B (as shown below), it indeed toggles the comment. Highlight from the other direction only adds more leading comment "//" for both lines.
//A.this is c++ code line one