XcodeBoost icon indicating copy to clipboard operation
XcodeBoost copied to clipboard

Method Re-Ordering

Open fortinmike opened this issue 10 years ago • 0 comments

In the same way that Xcode can re-order lines ("Move Line Up", "Move Line Down"), it would be a great refactoring / organization time-saver to be able to re-order methods with a single keystroke. Something like

  • Ctrl-Opt-Cmd-UpArrow
  • Ctrl-Opt-Cmd-DownArrow

For example:

- (void)method1
{
    [Caret Here]
    ...
}

- (void)method2
{
    ...
}

Pressing Ctrl-Opt-Cmd-DownArrow in that situation would move method1 below method2, preserving the empty line between the two methods.

fortinmike avatar Apr 02 '14 01:04 fortinmike