42

It has been working all this while since I upgraded to Xcode11.2. A couple of days back noticed it and now it's not allowing me to add an editor to the layout. Similar to Editor changes introduced in Xcode 11.

Tried:

  • Restarting Xcode
  • Rebooting MacBook
  • No Xcode update pending in AppStore

Any other suggestions to try before reinstalling the Xcode?

Current State for Xcode:

  • Disabled Editor add option

Disabled Editor add option on right panel

  • Disabled Editor option via Menu->Editor

Disabled Editor in Xcode->Menu->Edit option

Update A:

  • After using "Adjust Editor Option"

Using Adjust Editor Option

Adjust editor options - Assistent showing

This Assistant is not the same as regular editor. An editor would allow the user to independently open any file (and not always show to counterpart files). Plenty of visual space as using external monitor 24".

Update 2:

It seems to be an issue with the current project only (perhaps some messed up .xcodeproj setting?). Opened another project, and I'm able to see the "Add editor on right" just fine.

enter image description here

ashokds
  • 2,204
  • 1
  • 7
  • 11

2 Answers2

157

Unfocus the Editor

Turned out to be that Editor was in focused mode. As soon as an editor is in focused mode, Xcode hides the other editors and disables "adding editors to right" option on the menu and right bar.

Use the following key combination to toggle the focus-unfocus the editor.

Control + Shift + Command + Enter

Or use the Shortcut button to unfocus editor

Community
  • 1
  • 1
ashokds
  • 2,204
  • 1
  • 7
  • 11
15

Assistant Editor

Assistant is now under the editor option menu (left itme).

Preview

Also you can use control+option+command+return shortcut

Add Editor

The other one that is disabled is Add Editor on Right. Some times its getting disabled because there is not enough space to show another editor. You can change the position of it to below by holding option and click. This will convert it to Add Editor Below

Add Editor Below

Community
  • 1
  • 1
Mojtaba Hosseini
  • 95,414
  • 31
  • 268
  • 278
  • Tried the suggestion. It does open the Assistant which is more restrictive (can't have more than 1 assistant editors open). Updated question with other details. Please take another look. – ashokds Dec 04 '19 at 21:44
  • 1
    Did you try holding option key? – Mojtaba Hosseini Dec 04 '19 at 21:47
  • Yes, it did add the assistant editor (which is not same as regular editor). – ashokds Dec 04 '19 at 21:57
  • Looking for adding multiple editors with "add editor on right" option. Similar to [guide here] (https://www.avanderlee.com/xcode/xcode-assistant-editor/) – ashokds Dec 04 '19 at 21:58
  • I mean holding option and click on the disabled button. Also it would be more helpful if you post fullscreen images I think – Mojtaba Hosseini Dec 04 '19 at 21:59
  • Yes, tried that (holding option and clicking on it) it doesn't add anything. Similarly, shortcut `Control + Command + T` doesn't add it. – ashokds Dec 04 '19 at 22:28