我正在使用vscode集成终端。我想在keybindings.json中添加一个快捷方式,但是我需要在终端的名称的“ when”部分中添加一个过滤器。像“ terminal.name =='r'”之类的,如何实现呢?
{
"key": ";",
"command": "workbench.action.terminal.sendSequence",
"args": { "text": "%>% " },
"when": "terminalFocus && !terminalTextSelected"
},