visual studio code switch to terminal shortcut code example
Example 1: vscode change focus to terminal
// Toggle between terminal and editor focus
{ "key": "ctrl+`", "command": "workbench.action.terminal.focus"},
{ "key": "ctrl+`", "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus"}
Example 2: shortcut key for switch between editor and terminal vs code
{
"key": "ctrl+j",
"command": "workbench.action.focusActiveEditorGroup",
"when": "!terminalFocus"
},
{
"key": "ctrl+k",
"command": "workbench.action.terminal.focus",
"when": "terminalFocus"
}
Example 3: vs code switch terminal windows
alt + up/down left/right arrows