[英]Shortcut key for switching between split panes
I see that ctrl - \\ will create a new 'pane' in VS Code.我看到ctrl - \\将在 VS Code 中创建一个新的“窗格”。 Is there a way to switch between open panes using only the keyboard?有没有办法只使用键盘在打开的窗格之间切换?
Thanks in advance.提前致谢。
您可以使用Ctrl + 1 、 Ctrl + 2和Ctrl + 3 (Mac 上的Cmd )在最多三个打开的窗格之间导航。
If you happen to use the vim extension, insert below setting into the keybindings.json
[ cmd/ctrl+shift+p , then typeahead open keyboard shortcuts(JSON)
].如果您碰巧使用 vim 扩展,请将以下设置插入keybindings.json
[ cmd/ctrl+shift+p ,然后预先输入open keyboard shortcuts(JSON)
]。 This should give you familiar experience as in vim/neovim to navigate bewteen panes.这应该会给你熟悉的体验,就像在 vim/neovim 中导航面板一样。
{
"key": "ctrl+j",
"command": "workbench.action.navigateDown",
"when": "vim.mode != 'Insert'"
},
{
"key": "ctrl+k",
"command": "workbench.action.navigateUp",
"when": "vim.mode != 'Insert'"
},
{
"key": "ctrl+h",
"command": "workbench.action.navigateLeft",
"when": "vim.mode != 'Insert'"
},
{
"key": "ctrl+l",
"command": "workbench.action.navigateRight",
"when": "vim.mode != 'Insert'"
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.