Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcode 11 Close secondary editor shortcut

Tags:

xcode11

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

like image 593
Mocha Avatar asked Oct 06 '19 22:10

Mocha


2 Answers

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/

like image 149
mbabaev Avatar answered Jan 03 '23 15:01

mbabaev


The shortcut to close the current active editor is:

ctrl + ⌥ option + ⌘ command + W

This answer contains many more options

like image 41
Declan McKenna Avatar answered Jan 03 '23 13:01

Declan McKenna