2016-12-29 105 views
1

我已经设法添加一些键绑定到VSCode的集成终端,但想要添加更多。我怎样才能添加我自己的键盘绑定?VSCode - 如何添加更多的键绑定到集成终端

// Place your key bindings in this file to overwrite the defaults 
[ 
    { "key": "cmd+right",    "command": "workbench.action.terminal.focusNext", 
              "when": "terminalFocus" }, 
    { "key": "cmd+left",    "command": "workbench.action.terminal.focusPrevious", 
              "when": "terminalFocus" }, 
    { "key": "cmd+delete",    "command": "workbench.action.terminal.deleteAllRight", 
              "when": "terminalFocus" } 
] 

前两个工作,但最后一个没有,我猜这是由于这样的事实,综合终端没有这个选项。有没有办法添加它?我想在这里也有我所有的常规终端键盘绑定。

回答

0
{ 
     "key": "cmd+x", 
     "command": "workbench.action.terminal.kill", 
     "when": "terminalFocus" 
} 

你可能已经知道这一个,但以防万一。它只会杀死当前的终端,但您可以按相同的功能几次。

相关问题