-
Open the Command Palette (Ctrl+Shift+P Windows/Linux or ⇧ ⌘ P Mac).
-
Type "Preferences: Open Keyboard Shortcuts (JSON)" and press Enter.
-
Add the following entries to the keybindings.json file:
// Toggle between terminal and editor focus
{
"key": "ctrl+t",
"command": "workbench.action.terminal.focus"
},
{
"key": "ctrl+t",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
}