Does anyone know the keyboard shortcut (Mac and Linux) to switch the focus between editor and integrated terminal in Visual Studio Code?
SIMPLE WINDOWS SOLUTION FOR ANY KEYBOARD LAYOUT (may work for other OS but not tested)
I use a Finnish keyboard so none of the above worked but this should work for all keyboards.
Try using ctrl+` to toggles the visibility of the terminal and as a result toggle the focus.
Actually, in VS Code 1.48.1, there is a toggleTerminal
command; I don't know if it was available in previous versions ;) You can utilize it in the keybindings.json
file.
This worked for me on Windows, and should also works on Linux.
{
"key": "ctrl+alt+right",
"command": "workbench.action.terminal.toggleTerminal",
"when": "editorTextFocus || terminalFocus"
}
As of version : 1.26.1 (linux), the shortcut is not set by default. To set the shortcut
For editor focus is already set by default.