Vscode: Is there any shortcuts to switch between editors and the integrated terminal.

Created on 15 Sep 2016  路  7Comments  路  Source: microsoft/vscode

  • VSCode Version: 1.5.2
  • OS Version: win 10, 64 bit

My qustion is that is there any shortcuts to switch between editors and the integrated terminal? Here I can only use the CTRL+1, CTRL+2... to switch the open editor tabs.

*question

Most helpful comment

If you want ctrl+` to toggle back and forth, add this to your keybindings.json:

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

All 7 comments

ctrl+` toggles the terminal by default, there is also the workbench.action.terminal.focus command which you can add a keybinding for if you just want to focus it.

To clarify since Markdown got in the way, ctrl+backtick: i.e. ctrl+` toggles the panel.

However, not sure about switching back to the editor yet.

If you want ctrl+` to toggle back and forth, add this to your keybindings.json:

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

Updated question to add to this thread. Is there a way to click between terminals rather than moving the mouse to the selection dropdown. Similar to how iterm allows you to hold cmd+ ( 1, 2, 3, 4, etc) Obviously using cmd and number on vscode doesn't work the terminal, it added splits and filters between left, right and middle.

@ModernWebService you can add custom keybindings for these:

screen shot 2017-08-16 at 9 41 32 am

These entries will create RStudio-style Ctrl 1/ Ctrl 2 switching.

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

For our fellow azerty user, ctrl+7 will be usable instead of ctrl+backtick or ctrl+猫.

Was this page helpful?
0 / 5 - 0 ratings