Let us assume "foo.c" file is being editing. Underscore denotes a space, bar -- the caret position.
I expected "Toggle line commentation" operation will comment and uncomment a line, keeping the caret position intact (relatively to surrounding text, if possible). In my configuration this operation assigned to Ctrl+~, and comment line marker is set to "~". Pressing Ctrl+~ for the first time gives
Pressing Ctrl+grave again reverts the change:
Everything is ok. Now let us comment the line again and move the caret to the left:
and uncomment the line:
Line is uncommented, but the caret is moved to the end of the previous line. I would expect the caret will stay in the second line:
One more similar test:
Uncommeting the line gives:
If the second line is indented and the caret is within leading spaces:
Commenting the line gives:
I would expect the caret stays in the same position within the leading spaces:
Log in to post a comment.