Skip to content

Instantly share code, notes, and snippets.

@MarkZhangTW
Last active October 11, 2020 05:45
Show Gist options
  • Save MarkZhangTW/68f218d0673cde1a4e627e091e90d643 to your computer and use it in GitHub Desktop.
Save MarkZhangTW/68f218d0673cde1a4e627e091e90d643 to your computer and use it in GitHub Desktop.
VS Code key bindings for termianl operation.
// VS Code key bindings for termianl operation.
[
{ "key": "ctrl+a", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u0001"} },
{ "key": "ctrl+b", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u0002"} },
{ "key": "ctrl+c", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u0003"} },
{ "key": "ctrl+d", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u0004"} },
{ "key": "ctrl+e", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u0005"} },
{ "key": "ctrl+f", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u0006"} },
{ "key": "ctrl+g", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u0007"} },
{ "key": "ctrl+h", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\b"} },
{ "key": "ctrl+i", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\t"} },
{ "key": "ctrl+j", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\n"} },
{ "key": "ctrl+k", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u000B"} },
{ "key": "ctrl+l", "command": "workbench.action.terminal.clear", "when": "terminalFocus" },
{ "key": "ctrl+m", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\r"} },
{ "key": "ctrl+n", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u000E"} },
{ "key": "ctrl+o", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u000F"} },
{ "key": "ctrl+p", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u0010"} },
{ "key": "ctrl+q", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u0011"} },
{ "key": "ctrl+r", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u0012"} },
{ "key": "ctrl+s", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u0013"} },
{ "key": "ctrl+t", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u0014"} },
{ "key": "ctrl+u", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u0015"} },
{ "key": "ctrl+v", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u0016"} },
{ "key": "ctrl+w", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u0017"} },
{ "key": "ctrl+x", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u0018"} },
{ "key": "ctrl+y", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u0019"} },
{ "key": "ctrl+z", "command": "workbench.action.terminal.sendSequence", "when": "terminalFocus", "args": {"text":"\u001A"} },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment