To switch between the terminal and the code editor in VSCode using a shortcut, this is what I found:
- Go to
Settings
>Preferences
>Keyboard Shortcuts
. - In the search bar, type
workbench.action.terminal.focusAtIndex1
. - Assign a shortcut you like to this command.
For reference, I am using VSCode version: 1.91.1 (2024).