What this thread does
The problem
In the Claude Code terminal prompt, Enter sends the message and Shift+Enter starts a new line. The GitHub request (opened 2025-06-13 by tmokmss) asked for the Slack-style alternative. Its motivation: in Chinese, Japanese and Korean input methods Enter confirms the text being composed, so people send half-written messages by mistake. Commenters added accidental sends of pasted text, dictation, and muscle memory from other chat tools. The issue was closed as completed on 2026-08-17.
The answer from a maintainer
On 2026-08-17 a Claude Code maintainer (bcherny) replied that this can be done today with the keybindings file, ~/.claude/keybindings.json, or by running /keybindings: map enter to chat:newline and another key such as shift+enter or ctrl+enter to chat:submit, so only your chosen key sends. He linked the official keybindings and terminal-config pages and closed the issue as available. The reporter then posted a working file (a commenter on a later date reported the same idea works in the VS Code extension through a separate setting, claudeCode.useCtrlEnterToSend, which is a different mechanism):
{
"bindings": [
{
"context": "Chat",
"bindings": {
"enter": "chat:newline",
"shift+enter": "chat:newline",
"ctrl+enter": "chat:submit",
"cmd+enter": "chat:submit"
}
}
]
}
The release notes mention a fix in 2.1.141 so that alternative chat:submit keys such as ctrl+enter or meta+enter keep working when enter is rebound to chat:newline. Use a version at or after that one.
Caveats from the thread
- A commenter on Windows Terminal (Claude Code 2.1.235, 2026-08-19) said the same file did nothing for them: with
enterrebound, none ofctrl+enter,shift+enter,cmd+enterorctrl+jsent the message, and only a key unrelated to Enter such asctrl+sworked. They filed #87888 about modifier handling; its 2026-10-22 follow-up attributes the dropped modifiers to libuv's console-to-VT translation. The keybindings docs add that terminals which do not report extended keys deliverctrl+enteras plain Enter, andcmdcombinations only work in terminals that report the Super modifier, so those keys can fail on some setups. This is one user's report that was not confirmed by a maintainer here; test your terminal before relying on it, and keep a way to send (for example a non-Enter key). - An earlier commenter in March 2026 said a similar attempt failed because the terminal sends the same carriage return for Enter and ctrl+m, which the docs treat as not rebindable. The maintainer's later answer suggests it is now supported, but terminal behavior still decides.
- Others reported terminal-side workarounds (a WezTerm Lua key mapping, an AutoHotkey script on Windows). Those change keys for the whole terminal or desktop and are not described here.
- Commenters also point out the web and desktop chat apps have no such option.
Takeaway
Enter-to-newline is a supported, optional keybinding, not a new default. Set it in keybindings.json, update Claude Code, and verify that your send key actually works in your terminal before you close the old habit.
Sources
- anthropics/claude-code issue 2054, read through the GitHub API with its comments. Checked: opened 2025-06-13 by tmokmss, closed as completed on 2026-08-17; the maintainer comment by bcherny quoted in the body; the Windows Terminal report on 2.1.235 (2026-08-19).
- Claude Code keybindings docs were read. Checked: the file is
~/.claude/keybindings.jsonand/keybindingsopens it; the Chat context actionschat:submit(Enter by default) andchat:newline(Ctrl+J by default); Ctrl+M is always received as Enter and cannot be rebound;chat:sendNowbinds Ctrl+Enter and notes that terminals without extended-key reporting send it as plain Enter;cmdbindings only work where the terminal reports the Super modifier. - Claude Code release notes v2.1.141 was read. Checked: it fixes alternative
chat:submitbindings such asmeta+enterandctrl+enterwhenenteris rebound tochat:newline.
Not checked: the VS Code claudeCode.useCtrlEnterToSend setting, the WezTerm and AutoHotkey workarounds, and whether the posted JSON works in any given terminal (nothing was run). The claim that the web and desktop chat apps have no such option was not examined.
Started from a post by @tmokmss, packaged by the editor. Original post