Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Xcode 11, what are the keyboard shortcuts to open/change file in assistant editor?

Tags:

xcode

xcode11

Seems like we can use ^⇧⌘↩︎ to focus/unfocus current editor, though even when the current editor gets unfocused, I'm not sure how to control what gets opened in the assistant editor.

I would like to know the keyboard shortcuts for:

  1. Open a specified file in assistant editor.
  2. After assistant editor is opened, change which file gets displayed in assistant editor.

Thank you!

like image 546
Ivy Xing Avatar asked Sep 23 '19 21:09

Ivy Xing


People also ask

How do I open the assistant Editor in Xcode shortcut?

Assistant Editor You are probably already familiar with Xcode's Assistant Editor. You can open the Assistant Editor by choosing Assistant from Xcode's Editor menu or by using its keyboard shortcut, Control + Option + Command + Return. Most developers leave the Assistant Editor underused, though.

How do I open the assistant Editor in Xcode 11?

Assistant Editor The Assistant Editor is harder to find as of Xcode 11 even though it is incredibly useful. Press Control + Option + Command + Return to show the Assistant Editor on the right.

How do I open an 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.


2 Answers

Note: ⌘^⇧↩︎ switches between double and single editor mode.

To open assistant editor:

Use ⌘ + ^ + ⇧ + ↩︎ to switch to double editor mode

After using ⌘ + ⇧ + o to select a file, use

  1. ↩︎ to open in current focused editor OR
  2. Option + ↩︎ to open in assistant editor

(use ⌘ + J and then ← → to switch editor focus)

To close assistant editor:

⌘ + ^ + ⇧ + ↩︎ to switch back to single editor mode

like image 141
Ivy Xing Avatar answered Dec 09 '22 09:12

Ivy Xing


Pro Tip: You can always see the list of all available shortcuts on: -

Xcode -> Preferences -> Key Bindings

Then search the shortcut you want via the search bar.

Xcode Key Binding

Try to learn/muscle memorize new shortcuts on need to use basis ie if you find yourself performing certain action repetitively then maybe it's time for having a shortcut for that then visit the shortcut list or even make your custom shortcuts for that tasks.

like image 40
Mussa Charles Avatar answered Dec 09 '22 09:12

Mussa Charles