Xcode 11 Won't Open New Editor Pane

2020-08-09 05:04发布

问题:

So Xcode 11 changed the way editor panes are added and removed. Ok, fine, I got used to it soon enough. But a few days after using the Xcode 11 GM build, the option to add an editor is suddenly disabled.

Could be a bug, could be a 'feature' that I've inadvertently triggered. Neither the menu, toolbar button nor shortcut (^T) will give me another editor (though they all did with the same build yesterday).

Any ideas?

(Note: this screenshot has the Navigator pane hidden for simplicity. Its presence/absence doesn't help with this issue)

回答1:

Ok, this is embarrassing. I was in a 'focus' mode and could only add editors after I had 'hidden focus'. There are a few ways to do this:

  • View > Editor > Hide Focus
  • Tap the 'arrows pointing at each other' icon in the top left of the editor toolbar
  • ^↩︎

ps. I was seriously tempted to delete my question when I realised how dumb I'd been, but I'm leaving it up as I suspect this UI quirk might also trip up others (let me know if it does, it'll help me feel like less of a fool)