Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode11 Editors (via "Add Editor to Right") are disabled

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

like image 478
ashokds Avatar asked Dec 04 '19 21:12

ashokds


2 Answers

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

like image 38
Mojtaba Hosseini Avatar answered Oct 16 '22 00:10

Mojtaba Hosseini


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

like image 159
ashokds Avatar answered Oct 15 '22 23:10

ashokds