This answer / revelation caused a bit of a stir in the Philly CocoaHeads Slack so I figured I’d share it here as well.
Lots of people know and live by Xcode’s Quick Open Menu. You hit
Command-Shift-O and start typing the name of a file, a class or a method and have some very good options made available to you. Make a selection, hit return and bam, the file is now live in your editor.
But what about the assistant editor? Historically some of the best uses for the assistance editor was to view a file’s counterpart file, the header for an implementation file and visa-versa. With Swift’s lack of a header files, some people have come to put use the assistance editor of test files.
Regardless as to what you want in the assistant editor it’s always been a little clunky to pick the file. Well now you can use the Quick Open menu for this too, and it’s oh so simple.
Command-Shift-O and make your selection as normal. Instead of hitting
Option-Return — the file will now open in the assistant editor pane, opening it if need be.
That’s all there is to it. It’s a small feature but very handy for those trying to stick to their keyboard and avoid the mouse while moving around in Xcode.
For a handy Xcode 7 Shortcut Reference Card check out the Big Nerd Ranch iOS Course Resource repo for a PDF download. You can also get the card in print by ordering our latest edition of iOS Programming, 5th Edition — updated for Xcode 7 and Swift 2.
PS: Props to @lyricsboy for catching my typos!