Claude : Binding Shift-Enter, Ctrl-Enter and Alt-Enter to embed a newline rather than submit.
I use the Claude-Code extension in Visual Studio Code and with it, if I press Shift-Enter when entering a line, it moves to the new line rather than sending the half-completed text to Claude. I keep using the same keystroke in Linqpad rather than pressing Ctrl-J.
I tried setting the /keystrokes using
{
"bindings": [
{
"context": "Chat",
"bindings": {
"shift+enter": "chat:newline",
"ctrl+enter": "chat:newline",
"alt+enter": "chat:newline"
}
}
]
}
but none of them are picked up.
Is it possible to get any of these working?
Comments
-
These bindings are ignored due to a bug in xterm.js. I'll incorporate a workaround into the next build.
-
This is now fixed in 9.13.1. Shift+Enter should work out of the box.
-
Thanks. Working well.
