Skip to content

Instantly share code, notes, and snippets.

@barseghyanartur
Created February 1, 2023 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barseghyanartur/6e8f24ca19a5f18ef53d388b21c5cb31 to your computer and use it in GitHub Desktop.
Save barseghyanartur/6e8f24ca19a5f18ef53d388b21c5cb31 to your computer and use it in GitHub Desktop.
Switch focus between VS Code editor and integrated terminal

Switch focus between VS Code editor and integrated terminal

  1. Open the Command Palette (Ctrl+Shift+P Windows/Linux or ⇧ ⌘ P Mac).

  2. Type "Preferences: Open Keyboard Shortcuts (JSON)" and press Enter.

  3. 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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment