Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to tell XCode to always display "Counterparts" in the Assistant editor?

Tags:

xcode

xcode4

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.

like image 380
buildsucceeded Avatar asked Nov 20 '11 21:11

buildsucceeded


People also ask

How do I show my assistant in Xcode?

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.

How do I change the Assistant view in Xcode?

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.

How do I show the assistant Editor in Xcode 13?

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.

How do I show my assistant Editor?

control + option + command + return : Show Assistant Editor.


1 Answers

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.

like image 179
Joshua Nozzi Avatar answered Sep 25 '22 23:09

Joshua Nozzi