Re: Quick way to move method defs around?
Re: Quick way to move method defs around?
- Subject: Re: Quick way to move method defs around?
- From: Andy Lee <email@hidden>
- Date: Sun, 29 Dec 2013 03:47:06 -0500
On Dec 28, 2013, at 6:31 PM, Jerry Krinock <email@hidden> wrote:
> On 2013 Dec 28, at 14:45, Carl Hoefs <email@hidden> wrote:
>
>> Is there a way in Xcode 5 to move/rearrange method definitions, say, by command-dragging a method name in the popup list or some such? I'm going through a lot of code, refactoring and rearranging things, and cut/paste is quite tedious. Hoping there's some slick way to do this…
>
> I don’t think so, but copying or cutting methods is fast if you fold them first (code folding). They un-fold when pasted, so paste from the bottom up. Also Xcode works with multiple clipboards so you can stash many of them simultaneously. I use PTHPasteboard Pro.
Also, Xcode supports noncontiguous selection. You can select a method, then hold down Command while selecting another method, as many times as you want. Along with code folding, this should make it easier to select multiple methods that you'd like to move at once, "Cut", move the text cursor where you'd like them to go, and "Paste".
On an unrelated note, you can hold down Option to select a column in Xcode. This seems to be built into Cocoa text views (at least it worked in Stickies and TextEdit as well). Learned this at a CocoaHeads meeting some years ago.
--Andy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden