fortinmike / XcodeBoost

An Xcode plugin that aims to make altering and inspecting code quick and easy.
MIT License
817 stars 86 forks source link

Method Re-Ordering #5

Open fortinmike opened 10 years ago

fortinmike commented 10 years ago

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

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.