C-c in terminal
ambs opened this issue · 3 comments
ambs commented
Hi
Is there a way to send C-c in the terminal for program interruption?
Or, at least, a way to map it, for instance, to C-c C-c?
Thanks
nguyenthanhvuh commented
same question here. Right now. I would expect pressing C-c in the terminal send a program termination, but instead it is waiting for a second key stroke.
vkz commented
Add this to your keybindings.json
:
{
"key": "ctrl+c",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u0003"
},
"when": "terminalFocus"
}
nguyenthanhvuh commented
I think this works. Thank you.