2016-12-29 28 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" 
} 

你可能已經知道這一個,但以防萬一。它只會殺死當前的終端,但您可以按相同的功能幾次。

相關問題