79

Is it possible to 'Open Quickly' in the right pane of the Assistant Editor? This would increase productivity by like 20x

6 Answers 6

184

Yes it's possible, but depending on your Xcode version you may need to adjust the default behavior in Xcode's preferences.

Use ⌘ command+⇧ shift+O to open the "Open Quicky" input box, and then:

  • Use ⌥ option+Enter to open the file in the right editor.
  • Use ⌥ option+Shift+Enter to select where you want to open the file using the arrow keys.

On Xcode 12, the default action of ⌥ option+Enter is to open the file in a new "Tab" (which are new in this release, and different from a "Window Tab"). This is still configurable in the preferences.

On Xcode 11, you can split the editor as much as you want. This means ⌥ option+Enter by default will open the file in the editor next to where your cursor currently is.


This behavior is configurable in Xcode's Preferences, under Navigation:

Xcode Navigation Preferences

To have ⌥ option+Enter open the selected file in the editor on the right of the Xcode window, select "Optional Navigation: Uses Second Editor".

3
  • 6
    Just an addition to this answer, when the "Open Quickly" input box is showing, you can also press alt + shift + enter to open the small GUI menu (called the "Move Focus To Editor...") from which you can choose to open the new file in a new tab or replace any other open tab. May 23, 2017 at 12:39
  • @danielhadar just tested myself, it still works in Xcode 11 as expected. Sep 24, 2019 at 14:31
  • 1
    @GuillaumeAlgis it opens the file in the window that the cursor isn't in. Sep 24, 2019 at 17:04
62

Make sure that Uses Focused Editor is selected in Preferences > Navigation:

screenshot

This way, you can open it by focusing the Assistant Editor, pressing ⌘ command+⇧ shift+O to open the Open Quicky input box, and just press Enter to open the selected file, instead of ⌥ alt+Enter.

0
14

An even easier way is to hold down the Option key and then click on the file. That will bring open the chosen file in the Assistant Editor. This works great when you TDD your Swift :) You can have your tests on the left and option click on the implementation to open on the right.

12

Cool thing!

Just to extend the answer you can switch between more then two Tabs or open it new editor tab cool isn't it?

• Open multiple assistant editor .

⌘ command+⇧ shift+O.

• Hold ⌥ option and press Enter on the selected item.(Used to open any file in Assistant Editor)

• You can also use ⌥ option+⇧ shift+Enter to toggle more and open new tab if you're not on stacked editor.

• The multiple selection window will appear

enter image description here

Note: Make sure you have all editor stacked selected

enter image description here

2

In addition to Guillaume's answer, be mindful that the editor is not in the single editor mode (I don't know what it should be called officially though) that you can disable by selecting this button, otherwise all navigations become "Uses Focused Editor":

"Unfocus this editor" button

0

EDIT: misread your question above answer is good, just make sure you click into that pane before trying those commands

Sounds like your looking for some hotkeys, check here for a full list

  1. http://spin.atomicobject.com/2014/03/23/xcode-keyboard-shortcuts/
  2. http://iphonedev.tv/blog/2014/9/15/14-xcode-time-saving-shortcuts-memorize-and-improve-your-productivity
  3. http://nshipster.com/xcode-key-bindings-and-gestures/

but to open assistant editor use ⌘ command + ⌥ option + ↵ return

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.