Side-by-side .m and .h files are maybe my favorite thing about XCode 4. Of course, there's gotta be a catch: XCode switches to "Manual" sometimes, showing some other random .h file. Switching among tabs, I frequently start writing in a .h which isn't actually the right one. I usually notice this pretty quickly, but it's annoying.
Is there a way to tell Xcode to always display the 'Counterparts' view, i.e. the .h to whatever .m I have in the primary editor?
EDIT: My workaround is the wonderful hand-twisting shortcut Shift-Option-Cmd-Z, which brings up the counterpart whenever Xcode decides to get all cute and show some random other file.
You can open the editor from the Xcode menu Editor -> Assisant . Nowadays, the Assistant Editor is more seen as just a second editor next to the primary editor.
To change how the Assistant Editor displays in the Xcode interface, choose View, Assistant Editor, as shown in Figure 6.19. From there, you can choose how the Assistant Editor is added to the display and what will happen if multiple Assistant Editors are in use.
You can open the 'Assistant Editor' in Xcode by clicking the button with two circles in the top right, or via View > Assistant Editor > Show Assistant Editor.
control + option + command + return : Show Assistant Editor.
Not currently, no. File an enhancement request at http://bugreport.apple.com
FYI, my own experience with this annoyance is usually caused by accidental trackpad navigations while my pointer is over an assistant pane.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With