默认在底部。

例如,在下面的图像中,面板(部分D)是在底部,而我想让它移动到右侧,即在README。md编辑器显示在编辑器组(C节)。

图片来源:(https://code.visualstudio.com/images/codebasics_hero.png)


当前回答

希望这能帮助到一些人。

->打开键盘快捷方式

>搜索“workbench.action.togglePanelPosition”

->指定你想要的快捷方式

我指定了键绑定"cmd+ ' "

{
  "key": "cmd+`",
  "command": "workbench.action.togglePanelPosition"
}

现在我可以通过按“cmd + '”来切换终端

其他回答

你可以在内幕版做同样的事情,在右上角有一个选项切换到面板侧栏https://code.visualstudio.com/insiders/

终端在底部

终端在右边

我在Mac上使用Visual Studio Code v1.24.0。

默认情况下,面板将出现在底部(您也可以更改默认值。请参考@Forres的回答:在Visual Studio代码中移动面板到右侧)

下面是VS Code面板的底部/右侧切换按钮:

一旦我点击这个按钮,面板就会向右移动。

不过把它移回去有点棘手。如您所见,有些按钮是隐藏的。这是因为面板对齐时宽度太小。我们需要展开列以查看所有按钮。

这是它对扩展的看法:

现在,如果您想将面板移回底部,请再次单击toggle bottom/top按钮。

“Wokbench.panel.defaultLocation”:“正确”

使用CTRL+打开设置。,搜索终端,你应该看到这个设置在顶部。从设置说明下面的下拉菜单中,选择正确。请看下面的截图。

在1.64.2版本中,他们恢复了视图命令:向右(或向左)移动面板。你可以把面板(通常有终端/输出/等)。在它)作为一个垂直的列在左边或右边-旁边的侧栏或侧板,如果你愿意。


他们正在修复1.64版本带来的变化,应该会在2022年2月8日发布。

只需使用视图:从命令面板中向右/左/下移动面板命令。


[过时的答案,见上文。]

从Stable v1.64开始,设置"Wokbench.panel.defaultLocation": "right"将不再工作。

Replacing Panel Location As mentioned above, the new Side Panel provides similar functionality as moving the Panel to the left or right, yet improves on this by not forcing the move of the original panel. Along with view drag and drop between panels, the new Side Panel is replacing the option to move the bottom Panel. In light of that, we have deprecated the workbench.panel.defaultLocation setting as well as the Move Panel... commands in favor of similar commands Move Views From Panel To Side Panel (workbench.action.movePanelToSidePanel) and Move Views From Side Panel To Panel (workbench.action.moveSidePanelToPanel). The old commands will remap to the appropriate new command providing the similiar behavior. Though, we recommend updating your keybindings to the new commands.

从https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_64.md replacing-panel-location

这有利于使用新的侧面板,它可以添加到之前的侧栏(资源管理器,SCM视图的传统位置)和面板(终端,输出等传统位置)。你可以有三种面板类型的视图。详见v1.64版本说明:https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_64.md#new-side-panel

对于Visual Studio Code v1.31.1,您可以通过View菜单切换面板会话。

转到视图菜单。 通过外观选项,点击切换面板位置