Search code examples
xcodexcode11

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


Solution

  • 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