Search code examples
xcode11

xcode 11 Close secondary editor shortcut


Is there a shortcut to close all other editors except focused one?

Previously I would open a file with option so it would show as a second editor. When I was done with the second editor, I would "close" it by using show editor only (command + return). With xcode 11, the second editor isn't part of the assistant editor. So, I can't "close" it with show editor only.

In simple terms.. Is there a shortcut to close the right editor and only show the left one.

enter image description here


Solution

  • I think SHIFT+CONTROL+CMD+RETURN is exactly what you are looking for (Note: you should be "focused" on left editor to close right).

    Helpful link about new Xcode 11 assistant editor behavior: https://www.avanderlee.com/xcode/xcode-assistant-editor/