Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Surround selection with / unselects text sometimes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tom_seddon
Tomato Guru

162 Posts

Posted - Nov 01 2007 :  07:49:28 AM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Nov 01 2007 :  1:25:32 PM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000