Visual Studio Code有一个热键组合来将当前窗口分割为2或3个窗格:
"key": "ctrl + \", "command": "workbench.action.splitEditor"
不幸的是,我无法在没有鼠标的情况下在这些窗格之间切换。我以前用F6的习惯也不管用了。
Visual Studio代码编辑器是否支持它?
Visual Studio Code有一个热键组合来将当前窗口分割为2或3个窗格:
"key": "ctrl + \", "command": "workbench.action.splitEditor"
不幸的是,我无法在没有鼠标的情况下在这些窗格之间切换。我以前用F6的习惯也不管用了。
Visual Studio代码编辑器是否支持它?
当前回答
我最近发现了这个键绑定,它可以在组中的分裂窗格之间切换焦点。
"workbench.action.focusOtherSideEditor"
其他回答
对于Mac用户和最新的VS Code 1.17:
在窗格之间切换- Cmd+[1,2,3…],其中1,2,3为窗格号 在所有打开的文件之间循环:
前进- Cmd+Shift+] 倒数- Cmd+Shift+[
另一种方法是使用Ctrl + PageUp/PageDow在窗格之间切换。
我最近发现了这个键绑定,它可以在组中的分裂窗格之间切换焦点。
"workbench.action.focusOtherSideEditor"
你要找的是workbench.action.terminal.focusNextPane:
{
"key": "alt+down",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus"
},
{
"key": "alt+right",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus"
},
如果您习惯在vim(和/或tmux)中工作,并希望使用ctrl+hjkl四处移动
将这些添加到keybindings.json中
[
{
"key": "ctrl+h",
"command": "workbench.action.navigateLeft"
},
{
"key": "ctrl+l",
"command": "workbench.action.navigateRight"
},
{
"key": "ctrl+k",
"command": "workbench.action.navigateUp"
},
{
"key": "ctrl+j",
"command": "workbench.action.navigateDown"
}
]