Switch focus between editor and integrated terminal in Visual Studio Code

前端 未结 16 1660
我寻月下人不归
我寻月下人不归 2020-12-04 04:07

Does anyone know the keyboard shortcut (Mac and Linux) to switch the focus between editor and integrated terminal in Visual Studio Code?

16条回答
  •  抹茶落季
    2020-12-04 04:57

    I configured mine as following since I found ctrl+` is a bit hard to press.

    {
      "key": "ctrl+k",
      "command": "workbench.action.focusActiveEditorGroup",
      "when": "terminalFocus"
    },
    {
      "key": "ctrl+j",
      "command": "workbench.action.terminal.focus",
      "when": "!terminalFocus"
    }
    

    I also configured the following to move between editor group.

    {
      "key": "ctrl+h",
      "command": "workbench.action.focusPreviousGroup",
      "when": "!terminalFocus"
    },
    {
      "key": "ctrl+l",
      "command": "workbench.action.focusNextGroup",
      "when": "!terminalFocus"
    }
    

    By the way, I configured Caps Lock to ctrl on Mac from the System Preferences => keyboard =>Modifier Keys.

提交回复
热议问题