/ vscode

Toggle terminal and editor in Visual Studio Code

I often work with the terminal open while coding at the same time. Hence binding Ctrl+` ` to toggle between terminal and editor is sweet!

keybindings.json:

  {
    "key": "ctrl+`",
    "command": "workbench.action.terminal.focus"
  },
  {
    "key": "ctrl+`",
    "command": "workbench.action.focusFirstEditorGroup",
    "when": "terminalFocus"
  }

The only way to close the terminal panel is to exit the terminal.

Toggle terminal and editor in Visual Studio Code
Share this