Show Assistant Editor missing in Xcode 11?

XcodeXcode10Xcode11

Xcode Problem Overview


In Xcode 10, the toolbar had an inter-locking ring icon which showed the assistant editor, it's missing in Xcode 11.

Xcode 10

Xcode 11

Xcode Solutions


Solution 1 - Xcode

> In Xcode 10, the toolbar had an inter-locking ring icon which showed the assistant editor, it's missing in Xcode 11.

The interface has changed a little, but the functionality is still there. The top right corner of the editor pane has two buttons:

top right corner of Xcode text editor pane

Clicking the left button, which looks like lines of text, displays the popup menu, where you can choose various editor configuration options. Clicking the right button just narrows the existing editor and adds another one next to it.

Some of the same options are also available in the Editor menu in the main menu bar.


Update: This is from the Xcode 11 beta release notes, and perhaps more fully explains why the UI was changed:

> Editors can be added to any window without needing the Assistant Editor. Editors are added using the “Add Editor” button in the jump bar or the File > New > Editor command. Each editor can now be in one of three modes: “Editor Only”, “Editor and Assistant” or “Editor and Canvas”. The latter two modes automatically show relevant content when available. When using multiple editors, the View > Editor > Focus command can be used to temporarily expand the active editor to fill the entire window, hiding other editors. For source control support, the Code Review button in the Toolbar replaces the Comparison Editor. The “Show Authors” command is now available from the Source Editor’s Editor menu. The SCM Log is now in the Inspector Area. (43806898)

With multiple editors possible in a window, you need editor-specific controls for showing the ancillary views like the assistant editor, author view, etc.


From SMGreenfield's comment:

> Sometimes I want to look at a different part of the same darn document. There has always been a way to do this, but it involved jumping through hoops.

Just add another editor: click the Add Editor button in the upper right corner of the editor, or choose File > New > Editor. The new editor will default to showing the same file you were working on in the existing editor.

If new editors show up on the right of the existing editor and you'd prefer them to stack vertically, you can choose View > Change Editor Orientation. If you want them to stack horizontally most of the time (the default) but just want one to show up below, choose File > New > Editor Below.

Solution 2 - Xcode

Shortcuts :

  • control + option + command + return : Show Assistant Editor
  • command + return : Show Editor only (hide Assistant Editor)

Using Editor on the Toolbar

enter image description here

Solution 3 - Xcode

It has moved, to show it click on icon with horizontal lines and select Assistant. enter image description here

Solution 4 - Xcode

In Xcode 11 we now have multiple editor panes. You can summon a second pane, a third pane, as many as you like.

When you have a second pane, it does not have to be an automatic assistant. In other words, the editor pane itself either is an assistant or it is not. So if it is not, it is manual. And if it is, it is automatic.

To toggle between being an assistant and being an ordinary pane, choose Assistant from the Editor menu:

  • If Assistant is checked, this is an assistant and is automatic. What it displays depends automatically on some other pane.

  • If Assistant is unchecked, this is an ordinary editor pane and is manual. You can display anything you like in this editor.

Solution 5 - Xcode

In case you can't use Add Editor button just use shortcut: Cmd + Ctrl + Shift + Enter

Solution 6 - Xcode

Turn Assistant on by navigating to the following in Xcode 11:-
Xcode > Editor > Assistant

Screenshot

Solution 7 - Xcode

For Xcode 11.2.1

command + option + return

or

Main Menu -> Editor -> Line View

Solution 8 - Xcode

it is worth noting, that you can also open the assistant editor by alt-clicking the file

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionHackmanView Question on Stackoverflow
Solution 1 - XcodeCalebView Answer on Stackoverflow
Solution 2 - XcodeHackmanView Answer on Stackoverflow
Solution 3 - XcodeMike ZrielView Answer on Stackoverflow
Solution 4 - XcodemattView Answer on Stackoverflow
Solution 5 - XcodejanazView Answer on Stackoverflow
Solution 6 - XcodebikramView Answer on Stackoverflow
Solution 7 - XcodeJ. GoceView Answer on Stackoverflow
Solution 8 - Xcodebdskfsdk321dsad3View Answer on Stackoverflow