如何在 VSCode 中拥有多个面板或 Dock?

How Do I Have Multiple Panels or Docks In VSCode?

如何配置 VSCode 以具有多个侧边栏面板?
我想要左边一个面板,右边一个面板,底部一个面板,就像IDEA一样。

然后我想在左侧显示资源管理器视图,在底部显示源代码管理视图。

如何像这样移动选项卡?

我能找到的唯一设置是将整个面板从左移到右。

更新:现在在 v1.64.2 中。您可以使用“布局控件”或 View/Appearance/Show Side Panel.

显示新的侧面板

因此对于您的用例,您将显示侧面板。它会转到与边栏相反的一侧。保持面板在底部。您可以将 SCM 图标从 Activity 栏(边栏左侧)拖动到面板中。

您可以将所需的任何视图拖放到右侧的侧面板中。

New Layout Control Options

Last milestone, we introduced the experimental layout control in the title bar. We have heard feedback that, while the actions in the control are useful, they require too many clicks. For that reason, we are adding some options for everyone to try out with the setting workbench.experimental.layoutControl.type. This setting has the following options:

Menu: This is the previous behavior with a single button that opens a menu.

Toggles: This is a new option which shows three buttons to toggle the panel, side bar, and side panel.

Both: This is a new option which shows the toggles followed by the menu button which still allows you to fairly quickly access the customize layout quick pick.


之前:

您可以这样做,但您需要成为 运行 vscode 的 Insider Build,因为它(实验性地)启用了在右侧添加第二个面板的功能 - 称为“侧面板"。

Workbench > Experimental > Side Panel: Enabled
Workbench > Experimental > Layout Control: Enabled
Workbench > Experimental > Panel Alignment: Centerleft/right/justify/center

然后您可以将视图拖到您想要的位置(并非所有视图都可以拖放,但 SCM 可以)。