Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: Is it possible to 'Open Quickly' the right pane of the Assistant Editor?

Tags:

xcode

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

like image 540
Sean Danzeiser Avatar asked Sep 18 '15 19:09

Sean Danzeiser


People also ask

How do I open the assistant editor 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 open files side by side in Xcode?

Hold the option key down, and click on files in either the project view or the editor tabs and they will open in a new editor view.

How does Xcode choose assistant?

You can still ctrl+drag from storyboard to the class by the Adjust Editor button in the upper right of the storyboard. Then just select Assistant Editor on the list.


2 Answers

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".

like image 59
Guillaume Algis Avatar answered Oct 06 '22 00:10

Guillaume Algis


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.

like image 40
Iulian Onofrei Avatar answered Oct 06 '22 00:10

Iulian Onofrei