To reproduce, activate "surround selection on /" and "format on paste".
1. Copy some commented-out text 2. Paste it somewhere such that it gets indented on paste 3. Select the pasted text, Shift+TAB until it's flush with the left margin 4. Press "/" to uncomment it
After step 4, the text is unselected!
It would be better to leave the text hightlighted. This would be consistent with "surround selection on /"'s usual behaviour, and allow one to rearrange the newly-uncommented code a bit more.
This bug gets me a lot when I'm rearranging code, for obvious reasons.
I am seeing the same effect here. Thank you for the clear description.
case=9641
Depending on how you feel about the IDE's code formatting style, and the IDE you are using, you may find CTRL-A followed by "Format Selection", CTRL+K, CTRL+F helpful.