Skip to content

Instantly share code, notes, and snippets.

@pkskelly
Last active January 27, 2020 20:27
Show Gist options
  • Save pkskelly/b122e1c4d251285ee05814fbf14c1b1d to your computer and use it in GitHub Desktop.
Save pkskelly/b122e1c4d251285ee05814fbf14c1b1d to your computer and use it in GitHub Desktop.
VS Code Terminal Keybindings to enable Ctrl+` to switch back to the editor and Shift+Cmd+] to move between active terminal sessions. Press cmd+shift+p and type keyboard to find Preferences: Open Keyboard Shortcuts File. Add the following to the keybindings.json or update the existing file and save it.
// Place your key bindings in this file to override the defaults
[
// Toggle to terminal focus
{
"key": "ctrl+`",
"command": "workbench.action.terminal.focus"
},
// Toggle to editor focus
{
"key": "ctrl+`",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
//cycle to next terminal session
{
"key": "shift+cmd+]",
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment