Last active
January 27, 2020 20:27
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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