简体   繁体   中英

Shortcut key for switching between split panes

I see that ctrl - \\ will create a new 'pane' in VS Code. Is there a way to switch between open panes using only the keyboard?

Thanks in advance.

您可以使用Ctrl + 1Ctrl + 2Ctrl + 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) ]. This should give you familiar experience as in vim/neovim to navigate bewteen panes.

    {
        "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'"
    }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM