New refactoring: reverse order

Are you missing a feature? Request it's implementation here.
madde001
Posts: 80
Joined: Fri Apr 23, 2004 5:24 pm
Location: Durham, NC, USA

New refactoring: reverse order

Post by madde001 » Sat Nov 21, 2009 9:17 pm

Could you add a new XML refactoring that would reverse the order of the selected elements?

Most common use would be to flip the order of two adjacent elements.

(But occasionally it would be useful to invert the order of three or more adjacent elements. Suppose you have <a/><b/><c/><d/> and you want to get to <d/><b/><c/><a/>. You could do two cut-and-paste (or drag-and-drop), but this always seems to go wrong, and messes up the formatting to boot, requiring a format-and-indent. Alternatively, with reverse order, you could go <a/><b/><c/><d/> to <d/><c/><b/><a/> to <d/><b/><c/><a/>. I'd find that easier and less likely to go wrong, myself.)

John

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: New refactoring: reverse order

Post by sorin_ristache » Mon Nov 23, 2009 3:25 pm

Hello,

I added your request to our internal system. We will consider it for a future version.


Regards,
Sorin

Post Reply