How do I copy something from the terminal, because ctrl+c closes the node server that I have running, I didn’t face that conflict when using VsCode, highlighting text in the terminal and pressing ctrl+c should be a copy, pressing ctrl+c while not highlighting text should be a SIGINT to end the node server? how do I get back this function?
simply highlight it and right click to copy, or ctrl+shift+c
ctrl-c
is the de-facto command for SIGINT in terminals
if you want to override this, edit keybindings.json
to add:
{
"key": "ctrl+c",
"command": "workbench.action.terminal.copySelection",
"when": "terminalFocus && terminalProcessSupported && terminalTextSelected"
}
you can also re-map ctrl+shift+c to SIGINT with:
{
"key": "ctrl+shift+c",
"command": "workbench.action.terminal.sendSequence",
"args": { "text": "\\u0003" },
"when": "terminalFocus"
}