显示 Xcode 11 中缺少的助理编辑器? [英] Show Assistant Editor missing in Xcode 11?

查看:30
本文介绍了显示 Xcode 11 中缺少的助理编辑器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Xcode 10 中,工具栏有一个互锁环图标,显示助手编辑器,Xcode 11 中没有.

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 中没有.

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:

单击看起来像文本行的左按钮,会显示弹出菜单,您可以在其中选择各种编辑器配置选项.单击右键只会缩小现有编辑器的范围并在其旁边添加另一个.

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.

更新:这来自 Xcode 11 beta 发行说明,也许更全面地解释了 UI 更改的原因:

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

无需助理编辑器即可将编辑器添加到任何窗口.使用跳转栏中的添加编辑器"按钮或文件">新建">编辑器"命令添加编辑器.每个编辑器现在可以处于三种模式之一:仅限编辑器"、编辑器和助手"或编辑器和画布".后两种模式在可用时自动显示相关内容.使用多个编辑器时,可以使用视图">编辑器">焦点"命令临时展开活动编辑器以填充整个窗口,隐藏其他编辑器.对于源代码控制支持,工具栏中的代码审查按钮取代了比较编辑器.显示作者"命令现在可从源代码编辑器的编辑器菜单中使用.SCM 日志现在位于检查器区域中.(43806898)

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.

来自 SMGreenfield 的评论:

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.

这篇关于显示 Xcode 11 中缺少的助理编辑器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆