Replies: 53 comments 34 replies
|
I dont think this is JetBrains specific. You'll see the same behaviour if you open codex via the MacOS Terminal app. The shortcut for a new line is ctrl-j. I would love a way to change this because the muscle memory is strong. |
|
Running Claude Code and Codex side by side. Ctrl+J feels impossible. Configurability would be awesome. |
|
Yea Ctrl+J is a wild design choice. Makes codex fundamentally unusable right now. |
|
Running codex inside tmux in Wezterm on Mac. Shift+Enter runs the command. Ctrl+J is my tmux prefix 🤦 |
|
Really hoping this gets updated, I keep on accidentally submitting half-baked thoughts due to my shift+enter muscle memory. |
|
Please make it Shift + Enter, or configurable. Like everyone else here, I keep submitting half-baked messages which drives me insane. Don't fight our collective muscle memory; ctrl-j is a terrible choice IMHO. |
|
Agreed on it being a wild design decision. But if you are on WSL, here is a workaround that works for me. (And there are probably similar techniques for other terminals).
So a minimal settings.json could look like: |
|
Same, love Codex, especially after new updates, but Ctrl + J feels like learning to play Piano. Please make it adjustable! Or change to Shift - Enter |
|
Definitely change to Shift + Enter. |
|
You can do this with Alt + Enter (on linux at least) |
|
You can add a new line with Alt + Enter (on linux at least) |
|
this is unbelievably stupid!! |
|
I've been following this issue for three versions, but it still hasn't been fixed as of v0.47.0. Apparently, they consider it a feature rather than a bug. |
|
What is status on this issue? |
|
Was wondering about this too, im on a Mac - cant go to next line....should be configurable for us. or at least give us a shortcut. |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
|
I wasn't sure if I should post this here. Sorry if I'm wrong. I use the Codex extension in VS Code, but I'm really tired of sending chat messages. I'm a Japanese-speaking developer and always use an IME (Input Method Editor) for keyboard typing. The following explanation is for those unfamiliar with IMEs, so it's a bit lengthy: An IME has a kind of buffer called an "intermediate editing state." Within this buffer, I temporarily edit alphabetically typed characters, convert them to Japanese, and finally input the Japanese text into the actual application. This happens outside VS Code, supported by IME editing features like This behavior frequently causes unfinished Japanese text to be accidentally sent to Codex upon pressing Complicating this further is that the Codex extension's current behavior requires only When using an IME, we must constantly keep track of these combinations in our heads and instantly switch between Therefore, I'd like to request an option in VS Code to always send dialogs only with I realize this could be inconvenient for those not using an IME, so it would be good if it were configurable. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
|
How to do it when running codex in tmux in alacritty on a macbook? |
|
• Yes. Codex CLI supports this in config. Add this to ~/.codex/config.toml: [terminal] That makes Ctrl+M insert a newline instead of Ctrl+J. |
|
for those who are using vscode variant IDE. i found this works ps: i got this by querying codex, which is sweet |
|
for anyone who uses Karabiner + iterm2, this works for me. |
|
Actually, use /keymap in Codex CLI to rebind, worked for me. |
|
For the people lurking over here, if you're using Ghostty, this worked for me: Edit config, reload, you're done. |
in
|
|
The key point is that there are two separate layers here:
For Codex CLI/TUI, the built-in reliable newline shortcut is In current Codex versions, the better fix is to use the keymap support: Then look for: and bind it to the key you want, for example You can also configure it manually in [tui.keymap.editor]
insert_newline = ["ctrl-j", "shift-enter", "alt-enter"]Important caveat: if IntelliJ’s integrated terminal sends For terminals that support this, map Examples: WezTerm: {
key = "Enter",
mods = "SHIFT",
action = wezterm.action.SendString("\x0a"),
}Ghostty: VS Code terminal: {
"key": "shift+enter",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u000a"
},
"when": "terminalFocus"
}Windows Terminal: {
"command": {
"action": "sendInput",
"input": "\u000A"
},
"id": "User.sendLF"
}{
"id": "User.sendLF",
"keys": "shift+enter"
}So the practical answer is:
|

Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I'm encountering a keybinding issue within the IntelliJ integrated terminal, specifically when I'm using an interactive CLI tool like codex.
My goal is to input a multi-line command. In many other terminal applications, pressing Shift + Enter inserts a newline, allowing me to continue writing the command on the next line.
However, when I press Shift + Enter inside the IntelliJ terminal, it behaves exactly like pressing Enter on its own—it immediately executes the current line as a command.
This makes it very difficult to work with multi-line inputs in tools that require them.
I've already looked through the Settings > Keymap to see if Shift + Enter is bound to a conflicting action, but I couldn't find anything obvious that targets the terminal specifically.
Has anyone else faced this issue? Is there a specific setting in IntelliJ's terminal configuration or a keymap override that I can apply to make Shift + Enter function as a simple newline character?
Any help or guidance would be greatly appreciated. Thank you!
All reactions