Request: when using Mark All and then e.g. Remove trailing blanks, mark the current code position

Claus Pedersen

Member³
I am editing some code in program window. I press Ctrl-A to mark all code. The cursor goes to the last line in the code.
I then use Edit -> Selection -> Remove Trailing Blanks and the blanks are removed.
Now I would like to be able to use the Navigate back button (or Alt-Left arrow) to navigate back to the place where the cursor was originally placed. But the current cursor position is not saved when Mark All is used.

Please correct this.

A work-around is of course to manually navigate to the current method (using the code hierarchy), then use mark all, etc. In this way, the current method position is stored in the navigation history, but guess how many times out of ten the user remembers to manually navigate before hitting Ctrl-A?
 
Does the cursor go to the end on Ctrl-A? Just tested in 11.0.2 and it's only Ctrl-B that does that. I wish it wouldn't - it seems like a side effect.
 
Sorry, my bad.

Ctrl-A does not affect the current cursor position. It is Remove trailing blanks that does the navigation.

But I agree, it must basically be a side effect that the remove function navigates to the end. This operation should just re-position the cursor at it's original position after finish.

I am using version Version 11.0.5, 64 bit
 
Back
Top