You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
vscode: Add an option to always send chat messages as [Shift]+[Enter], because IME behavior #10209
Please add an option to the Codex VS Code extension to permanently change the key used to send messages in the chat pane to always [Shift]+[Enter].
This would allow changing the current behavior where messages are sent using [Enter] (or [Shift]+[Enter] depending on the multiple lines).
Motivation
In some non-English-speaking regions like Japanese-speaking areas, users routinely employ IME (Input Method Editor) functions for text input. Due to conflicts with the [Enter] key used in the IME's pre-editing buffer, users frequently make the mistake of accidentally sending messages they are typing to Codex.
To input correctly, users must constantly be aware of whether Codex sends messages with [Enter] or [Shift]+[Enter], while also considering whether to supplement with [Shift] to avoid [Enter] mistypes. This is extremely painful.
If Codex always sent messages with [Shift]+[Enter], this difficult typing game could be avoided. This would also prevent the problem of accidentally sending messages and consuming tokens.
Some users might prefer combinations like [Ctrl]+[Enter] or [Alt]+[Enter] instead of [Shift]+[Enter]. If that were an option, it would be an even better improvement.
Proposed Behavior
We can switch settings to always use [Shift]+[Enter] when sending messages to Codex.
Optional: It would be even better if other key combinations, such as [Ctrl]+[Enter], could be specified.
There is a way to change the IME settings and assign something else to the [Enter] key. However, since I already use the IME daily, changing this is extremely difficult. Moreover, if I change the IME settings, I then have to consider compatibility with each individual application. While this might be possible for many applications, just thinking about it is exhausting.
Additional information
No response
Reacted by Katsuhiko Takahashi, Tetsuji Kato, roshal, Atsushi Nakamura, Hiroki_Takeuchi, gh-61, takc923, Naotiki, Xinyu Liu, combz-od and 7 more
Also, I think it’s not enough to “always send with Shift+Enter” — we need an option to avoid using plain Enter for sending at all.
Chat UIs mix Enter / Shift+Enter / Ctrl+Enter inconsistently across tools.
With Japanese/CJK IME in particular, Enter is used constantly to confirm composition, so it becomes the primary cause of accidental sends.
Please expose separate commands for send and newline, and make them remappable via VS Code keybindings.
A preset like “Send = Ctrl+Enter (Cmd+Enter on macOS) / Newline = Enter” would cover most cases,
and ideally also allow “Send = Ctrl+J (no Enter involved. IME rarely binds Ctrl+letter combinations)” to significantly reduce mis-sends.
Reacted by Kouji Matsui, Tetsuji Kato, masa6161, Hiroki_Takeuchi and combz-od
Additionally, this Codex vscode Extension currently has an issue where a prompt, once sent, cannot be corrected and resent.
As a result, if a prompt is mistakenly sent in this way, it leads not only to degraded UX and unnecessary token consumption, but also to serious performance degradation such as the following:
Incorrect information persists in the dialogue history and misleads subsequent reasoning. (Context contamination / False-premise propagation)
Even after an explicit correction is appended, the original and corrected statements coexist, preventing a uniquely determined final specification. (Specification ambiguity / Conflicting specifications)
As corrections and addenda accumulate, the relative salience of key constraints attenuates, increasing the likelihood of constraint mix-ups. (Constraint dilution / Instruction salience degradation)
As the session length grows, the noise-to-signal ratio increases, degrading consistency and reproducibility. (Context drift / Reliability degradation)
Reacted by Kouji Matsui, Tetsuji Kato, masatoko, Hiroki_Takeuchi and combz-od
My case is not IME-specific, but it points to the same problem: the current behaviour creates bad muscle memory across tools. Because ChatGPT-style inputs submit on Enter, I’ve found myself retraining into Shift+Enter for line breaks everywhere — email, documents, issue comments, etc. That is backwards from the rest of the writing/editing environment.
In Codex the cost of accidental submission is also higher than ordinary chat, because the prompt may be incomplete but still actionable against a codebase.
I’d strongly prefer a setting where plain Enter inserts a newline, and submission requires either the button or an explicit shortcut such as Ctrl+Enter / Cmd+Enter.
Reacted by Kouji Matsui, Noah Mern and seanchann.zhou
Personally, I’ve switched to Codex CLI to work around various issues with VS Code, and since I can now change key bindings using /keymap, I’m closing this issue.
I haven’t checked to see if the issue has been resolved in VS Code. If the problem still persists, I recommend opening a new issue and referencing this one.
Activity
kt-devoss commentedon Feb 11, 2026
+1.
Also, I think it’s not enough to “always send with Shift+Enter” — we need an option to avoid using plain Enter for sending at all.
Chat UIs mix Enter / Shift+Enter / Ctrl+Enter inconsistently across tools.
With Japanese/CJK IME in particular, Enter is used constantly to confirm composition, so it becomes the primary cause of accidental sends.
Please expose separate commands for
sendandnewline, and make them remappable via VS Code keybindings.A preset like “Send = Ctrl+Enter (Cmd+Enter on macOS) / Newline = Enter” would cover most cases,
and ideally also allow “Send = Ctrl+J (no Enter involved. IME rarely binds Ctrl+letter combinations)” to significantly reduce mis-sends.
kt-devoss commentedon Feb 11, 2026
Additionally, this Codex vscode Extension currently has an issue where a prompt, once sent, cannot be corrected and resent.
As a result, if a prompt is mistakenly sent in this way, it leads not only to degraded UX and unnecessary token consumption, but also to serious performance degradation such as the following:
BrimborionInc commentedon Jun 24, 2026
Adding another +1 for making this configurable.
My case is not IME-specific, but it points to the same problem: the current behaviour creates bad muscle memory across tools. Because ChatGPT-style inputs submit on Enter, I’ve found myself retraining into Shift+Enter for line breaks everywhere — email, documents, issue comments, etc. That is backwards from the rest of the writing/editing environment.
In Codex the cost of accidental submission is also higher than ordinary chat, because the prompt may be incomplete but still actionable against a codebase.
I’d strongly prefer a setting where plain Enter inserts a newline, and submission requires either the button or an explicit shortcut such as Ctrl+Enter / Cmd+Enter.
jakobjw commentedon Sep 3, 2026
This might be related to the now existing ability to set
"chatgpt.composerEnterBehavior": "cmdAlways". Note that this does not use [Shift]+[Enter], but [Cmd]+[Enter]. This might even solve the issue for some people (like me).https://learn.chatgpt.com/docs/developer-settings?surface=ide#ide-__codexlocalizedvalueprops__codextranslations-u0070-editor-settings-reference
kekyo commentedon Sep 10, 2026
Personally, I’ve switched to Codex CLI to work around various issues with VS Code, and since I can now change key bindings using
/keymap, I’m closing this issue.I haven’t checked to see if the issue has been resolved in VS Code. If the problem still persists, I recommend opening a new issue and referencing this one.
BrimborionInc commentedon Sep 23, 2026
Thanks @jakobjw for the heads-up. OpenAI have indeed implemented this as a setting:
Open VS Code Settings: (Ctrl + comma)
Search chatgpt.composerEnterBehavior
Select cmdAlways
Enter is now a line feed in the chat box
CTRL + enter is submit
Yay