首先在vscode中打开设置的位置
File | Preferences | Keyboard Shortcuts.
第一种方法
输入ctrl+shift+c修改为ctrl+c即可,ctrl+shift+v修改为ctrl+v同理
第二种方法
打开json格式的设置文件
?输入以下内容即可
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+c",
"command": "workbench.action.terminal.copySelection",
"when": "terminalFocus && terminalHasBeenCreated && terminalTextSelected || terminalFocus && terminalProcessSupported && terminalTextSelected"
},
{
"key": "ctrl+shift+c",
"command": "workbench.action.terminal.sendSequence",
"when": "terminalFocus"
},
{
"key": "ctrl+v",
"command": "workbench.action.terminal.paste",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
}
]
参考连接:
visual studio code - Make Ctrl+C=copy and Ctrl+Shift+C=interrupt in VSCode terminal - Stack Overflow
|