Skip to content

Instantly share code, notes, and snippets.

@Atinux
Last active January 16, 2022 05:43
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Atinux/bd45311e54e39b6a82dcf53b0e1af6ca to your computer and use it in GitHub Desktop.
Save Atinux/bd45311e54e39b6a82dcf53b0e1af6ca to your computer and use it in GitHub Desktop.
VS Code Terminal Shortcuts
[
{
"key": "ctrl+shift+n",
"command": "workbench.action.terminal.new"
},
{
"key": "ctrl+shift+right",
"command": "workbench.action.terminal.focusNext"
},
{
"key": "ctrl+shift+left",
"command": "workbench.action.terminal.focusPrevious"
},
{
"key": "ctrl+shift+backspace",
"command": "workbench.action.terminal.kill"
}
]
@Atinux
Copy link
Author

Atinux commented Nov 26, 2020

  1. Open this file: CMD + Shift + P -> Open Keyboard Shortcuts (JSON)
  2. Add the shortcuts, enjoy 😊

@kossa
Copy link

kossa commented Nov 26, 2020

I'm using

{
    "key": "f2",
    "command": "workbench.action.terminal.new"
},
{
    "key": "f2",
    "command": "workbench.action.terminal.toggleTerminal"
},

@KNTH01
Copy link

KNTH01 commented Nov 28, 2020

Thanks! I've used this to improve my setup:

/**
   * Terminal Split Panel
   **/
  {
    "key": "alt+n",
    "command": "workbench.action.terminal.split",
    "when": "terminalFocus"
  },
  {
    "key": "alt+l",
    "command": "workbench.action.terminal.focusNextPane",
    "when": "terminalFocus"
  },
  {
    "key": "alt+h",
    "command": "workbench.action.terminal.focusPreviousPane",
    "when": "terminalFocus"
  },
  {
    "key": "alt+w",
    "command": "workbench.action.terminal.kill",
    "when": "terminalFocus"
  },
  {
    "key": "alt+shift+n",
    "command": "workbench.action.terminal.new",
    "when": "terminalFocus"
  },
  {
    "key": "alt+shift+right",
    "command": "workbench.action.terminal.focusNext",
    "when": "terminalFocus"
  },
  {
    "key": "alt+shift+left",
    "command": "workbench.action.terminal.focusPrevious",
    "when": "terminalFocus"
  },

I replace ctrl by alt since i'm using the alt key for terminal relative shortcuts :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment