Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4 Cmd+alt+up/down remapping

Tags:

xcode4

I realise that switching between header and implementation files has moved to ctrl+cmd+up/down.

however this is incredibly annoying, as there is no Ctrl button near the arrow keys, before I could do it quickly with 3 fingers on one hand.

So i opened up preferences found that I could change the key bindings and attempted to press cmd+alt+up/down. However it seems that it is the only box that refuses to accept the alt key. I tried any combination of alt+any key, and it just entered the key without alt. How can I bypass this? Is there a manual way of setting key bindings, and why on earth is alt not allowed in these 2 particular key bindings?

like image 583
Jonathan. Avatar asked Mar 12 '11 11:03

Jonathan.


2 Answers

I reported a bug at apple. (Problem ID: 9125898)

Please add any details there.. [edit] oops, not possible.. Just submit another one :)

like image 138
hariseldon78 Avatar answered Nov 08 '22 15:11

hariseldon78


Not sure if it's a bug but YES you can remap it. However the behavior is a little different from that in Xcode 3. You can set it to Cmd+alt+up /down in Preferences. Note that you can't set the alt key on "Jump to Next Counterpart" but only "Jump to Next Counterpart (option)". Jump to Next Counterpart (option) This new key binding will open implementation/interface file in Assistant Editor side-by-side with the original editor.

Cmd+Return to close the Assistant Editor.

like image 38
Matt Chuang Avatar answered Nov 08 '22 15:11

Matt Chuang