VSCode:如何垂直拆分编辑器 [英] VSCode: How to Split Editor Vertically
本文介绍了VSCode:如何垂直拆分编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 Visual Studio 代码中,不久前,当我使用 View->Split Editor 时,它会垂直拆分.(左边一个文件,右边一个文件.)
In Visual Studio code, a while ago, when I used View->Split Editor, it would split vertically. (One file on the left and one file on the right.)
我更新了 Visual Studio Code,当我执行 View->Split Editor 时,它总是水平拆分.(顶部一个文件,底部一个文件.)
I updated Visual Studio Code and when when I do View->Split Editor, it always splits horizontally. (One file on the top and one file on the bottom.)
如何垂直拆分?
推荐答案
将编辑器拆分布局从水平改为垂直
在 1.20
- ALT+SHIFT+0 PC(Windows、Linux)
- ⌘+⌥+0 Mac
- ALT+SHIFT+0 PC (Windows, Linux)
- ⌘+⌥+0 Mac
- ALT+SHIFT+1 PC(Windows、Linux)
- ⌘+⌥+1 Mac
- ALT+SHIFT+1 PC (Windows, Linux)
- ⌘+⌥+1 Mac
- 您可以将编辑器拆分为
Grid
布局.检查View
=>Editor Layout
- 它在 发行说明 v1.25:VS Code 网格编辑器中得到了很好的呈现布局
- You can split editor into
Grid
layout. CheckView
=>Editor Layout
- It is nicely presented in Release notes v1.25: VS Code grid editor layout
- 上面给出的快捷方式的菜单项是
View
=>Editor Layout
=>Flip Layout
- Command Palette 条目标记为Toggle Vertical/水平编辑器布局"
- settings 条目是
- The menu entry with the shortcut given above is
View
=>Editor Layout
=>Flip Layout
- The Command Palette entry is labeled "Toggle Vertical/Horizontal Editor Layout"
- The settings entry is
Change editor split layout from horizontal to vertical
In 1.20
** 有人用最低版本更新了这个,这变成了现实.
** Someone update this with the lowest version where this became true.
{
"key": "alt+cmd+0",
"command": "workbench.action.toggleEditorGroupLayout"
}
这篇关于VSCode:如何垂直拆分编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文