本页内容

拆分编辑器视图

拆分编辑器视图或在新窗口中打开编辑器,以便在同一屏幕或多个屏幕上同时处理和查看多个文件。

编辑器视图的水平和垂直分割

同时查看多个文件:

  • 要将编辑器视图拆分为上下两个视图,请转至“Window ” > “Split ”,选择Ctrl+E、2SplitSplit ),然后选择“Split ”。

    Split ”命令可在当前活动编辑器视图下方创建视图。

  • 要将编辑器视图拆分为相邻的视图,请转到“Window ” > “Split Side by Side ”,选择Ctrl+E、3,或选择“Split ” > “Split Side by Side ”。

    Split Side by Side ”命令会在当前活动编辑器视图的右侧创建视图。

  • 要在独立窗口中打开编辑器,请按Ctrl+E、4,或转到“Window ” > “Open in New Window ”。

    新窗口的行为与主窗口中的编辑器区域相同。例如,您也可以对该窗口进行拆分。文档将在当前活动的编辑器窗口中打开。

在视图和窗口之间切换

要在拆分视图和独立编辑器窗口之间切换,请转至“Window ” > “Go to Next Split or Window ”,或按Ctrl+E, O

删除分割

要删除拆分视图:

  • 将光标置于要删除的视图内,然后转到“Window ” > “Remove Current Split ”。
  • 选择Ctrl+E, 0
  • 选择“取消拆分 ”(Remove Split )。

若要删除除当前选中的分屏视图以外的所有分屏视图:

  • 转到“Window ” > “Remove All Splits ”。
  • 选择Ctrl+E,1

另请参阅 《操作指南:编辑代码》、《分离视图》和《编辑代码》。

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.