Skip to content

Commit

Permalink
add terminal keybinding
Browse files Browse the repository at this point in the history
  • Loading branch information
zxhio committed Aug 1, 2021
1 parent 95b64d1 commit b8aa158
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions vscode/keybindings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[
{
"key": "ctrl+tab",
"command": "workbench.action.terminal.focusNext", // 切换到下一个终端
"when": "terminalFocus"
},
{
"key": "ctrl+w",
"command": "workbench.action.terminal.kill", // 关闭当前终端
"when": "terminalFocus"
},
{
"key": "ctrl+n",
"command": "workbench.action.terminal.new", // 打开新的终端
"when": "terminalFocus"
},
{
"key": "ctrl+1",
"command": "workbench.action.terminal.focusAtIndex1", // 打开终端1
"when": "terminalFocus"
},
{
"key": "ctrl+2",
"command": "workbench.action.terminal.focusAtIndex2",
"when": "terminalFocus"
},
{
"key": "ctrl+3",
"command": "workbench.action.terminal.focusAtIndex3",
"when": "terminalFocus"
},
{
"key": "ctrl+4",
"command": "workbench.action.terminal.focusAtIndex4",
"when": "terminalFocus"
},
{
"key": "ctrl+5",
"command": "workbench.action.terminal.focusAtIndex5",
"when": "terminalFocus"
},
{
"key": "ctrl+6",
"command": "workbench.action.terminal.focusAtIndex6",
"when": "terminalFocus"
}
]
File renamed without changes.
File renamed without changes.

0 comments on commit b8aa158

Please sign in to comment.