默认情况下,它在底部。
例如,在以下图片中,组件(第D节)位于底部,但我想将其移动到右侧区域,即在编辑器组(第C节)中显示README.md编辑器的区域。
图片来源:(https://code.visualstudio.com/images/codebasics_hero.png)
默认情况下,它在底部。
例如,在以下图片中,组件(第D节)位于底部,但我想将其移动到右侧区域,即在编辑器组(第C节)中显示README.md编辑器的区域。
图片来源:(https://code.visualstudio.com/images/codebasics_hero.png)
workbench.action.togglePanelPosition
。您可以添加一个键盘快捷方式来在面板位置之间进行切换。 - Jake Bathman"workbench.panel.defaultLocation": "right"
。 - Barabas我在Mac上使用Visual Studio Code v1.24.0。
默认情况下,面板将出现在底部(您也可以更改默认设置。请参阅@Forres的答案:将Visual Studio Code中的面板移动到右侧)
这是VS Code面板的底部/右侧切换按钮:
点击此按钮后,面板会移动到右侧。
不过,将其移回有点棘手。正如您所看到的,一些按钮被隐藏了。这是因为当面板向右对齐时,它的宽度太小了。我们需要扩展列以查看所有按钮。
扩展后的效果如下:
现在,如果您想将面板移回底部,请再次单击切换底部/顶部按钮。
点击菜单选项 View > Appearance > Move Side Bar Right
或者在 settings.json 文件中:
"workbench.panel.defaultLocation": "right"
workbench.sideBar.location
。除非我复制时出错了,否则我的评论是正确的。然后我注意到现在有一个新按钮可以将其移动到侧边栏或底部。 - StefanoCTRL
+ ` 将它们显示在右侧。 - Aditya Kresna Permana查看 > 外观 > 移动到侧边栏右侧
。一旦侧边栏移动到右侧,选项“将侧边栏移到左侧”将变为“将侧边栏移到右侧”。希望这能帮到某些人。
-> 开启键盘快捷方式
-> 搜索“workbench.action.togglePanelPosition”
-> 分配您想要的快捷方式
我已经分配了按键绑定“cmd+`”
{
"key": "cmd+`",
"command": "workbench.action.togglePanelPosition"
}
现在我可以通过按下“cmd + `”来切换终端
VSCode 1.42(2020年1月)引入了以下功能:
Panel on the left/right
The panel can now be moved to the left side of the editor with the setting:
"workbench.panel.defaultLocation": "left"
This removes the command
View: Toggle Panel Position
(workbench.action.togglePanelPosition
) in favor of the following new commands:
View: Move Panel Left
(workbench.action.positionPanelLeft
)View: Move Panel Right
(workbench.action.positionPanelRight
)View: Move Panel To Bottom
(workbench.action.positionPanelBottom
)