Warp
Warp copied to clipboard
Can't get shift+enter to produce new line in Claude Code
Pre-submit Checks
- [x] I have searched Warp bugs and there are no duplicates
- [x] I have searched Warp known issues page and my issue is not there
- [x] I have included the logs (optional, but helps expedite the bug fix). Log gathering intructions
Describe the bug
At the command-line prompt, typing shift+enter produces the new line that I prefer.
However inside claude-code, I can't seem to get it to produce a new line instead of sending the command to claude code. I tried a number of bindkey etc., but there seems to be some other problem.
I've also created an issue in claude, https://github.com/anthropics/claude-code/issues/923
To reproduce
type ls[shift+enter] get a new line
launch claude code:
claude
type hello[shift+enter]
get hello sent to the claude app
Expected behavior
I expect it to add a new line instead.
Screenshots, videos, and logs
Operating system (OS)
macOS
Operating system and version
15.4.1
Shell Version
zsh 5.9 (arm64-apple-darwin24.0)
Current Warp version
v0.2025.04.23.08.11.stable_01
Regression
No, this bug or issue has existed throughout my experience using Warp
Recent working Warp date
No response
Additional context
No response
Does this block you from using Warp daily?
No
Is this an issue only in Warp?
Yes, I confirmed that this only happens in Warp, not other terminals.
Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e
None
I have same issue on WSL Ubuntu 22.04 LTS and VS Code terminal (running on Windows 10)
Same issue!
same issue , WSL Ubuntu and VS Code
same issue, WSL Ubuntu, integrated VS Code terminal
same here - macOS 15.5, zsh 5.9, warp version v0.2025.05.21.08.11.stable_01
same issue on warp!
Im having this issue as well on macOS terminal
+1 i'm having the same issue!
Same issue
+1 same issue, if that would help :)
Guess what, same issue :)
The keyboard manager powertoy is an easy fix.
@Cybonto @chemeris @DhvanilPatel @mjonesjr90 FYI in case :)
@SeMmyT Do you mean you found out how to fix this by changing config? If so, could you please enlighten us? 🙏🏻
same issue, macos 14.4.1 + iterm2 3.4.22
@SeMmyT Do you mean you found out how to fix this by changing config? If so, could you please enlighten us? 🙏🏻
a windows powertoy "keyboard manager" - but it's window detections sucks for some reason, had the hotkey swap not triggered multiple times.
Works for me just fine...
macOS Sequoia 15.5 arm64v0.2025.05.28.08.11.stable_02v0.2025.05.28.08.11.preview_05
It's within the Claude Code command claude, not the AI interface of Warp.
https://github.com/user-attachments/assets/567efbb2-87f1-41e1-88db-98d1508014e8
I found a workaround apparently, in claude you can use +Enter to make a new line. Works for me in Warp + tmux + claude. A bit less convenient than Shift+Enter but bearable.
As another workaround, you can escape the enter key via \<enter> - however it'd be nice if this bug could still be fixed
It's within the Claude Code command
claude, not the AI interface of Warp.Screen.Recording.2025-06-02.at.10.14.45.mov
Thank you for taking time to record a video :).
I've tested in regular powershell terminal, cursor and vscode (powershell terminal as well), in Windows 11 and it seems shift+enter for entering new command and ctrl+enter for new line are the expected hotkeys, but only Cursor has an in-build workaround - and on pressing shift+enter inserts \ and makes a new line, while ctrl+enter sends the chat.
Is it possible to add the option to add similar workaround in future Warp's updates? ^^.
From the Claude docs directly:
You have several options for entering linebreaks into Claude Code:
- Quick escape: Type
\followed by Enter to create a newline- Keyboard shortcut: Press
Option+Enter(Meta+Enter) with proper configuration
https://docs.anthropic.com/en/docs/claude-code/cli-usage#line-breaks-in-terminal https://docs.anthropic.com/en/docs/claude-code/settings#line-breaks
@warpdotdev-devx should work with Anthropic to get a workaround similar to iTerm2:
Tip for iTerm2 and VSCode users: Run
/terminal-setupwithin Claude Code to automatically configure Shift+Enter as a more intuitive alternative.
I can't get Shift+Enter working. Ctrl+Enter also does not work. Both send command to the Claude like Enter alone does. Even after running /terminal-setup (which throws an error if something is already taking this shortcut, which I removed and tried again with no error this time but it still did nothing to help.
Option-enter does not work for me. Perhaps Warp is capturing the Option and not passing it on?
https://github.com/user-attachments/assets/7d09ea05-0bdc-440d-b612-5cd3e8f75bce
To be clear, I'm entirely open to the idea that I've misconfigured something, but I've looked around and can't figure out what it could be.
+1
@warpdotdev-devx should work with Anthropic to get a workaround similar to iTerm2:
Tip for iTerm2 and VSCode users: Run
/terminal-setupwithin Claude Code to automatically configure Shift+Enter as a more intuitive alternative.
Life saver I owe you one lol works perfectly
https://github.com/user-attachments/assets/a39adba3-03a9-4aaa-b1ec-61cf57a98bc1
life saver
I have this issue as well (editing becuase it was fixed with /terminal-setup in claude code) thanks beautiful people
@warpdotdev-devx should work with Anthropic to get a workaround similar to iTerm2:
Tip for iTerm2 and VSCode users: Run
/terminal-setupwithin Claude Code to automatically configure Shift+Enter as a more intuitive alternative.
As per usual, the answer is somewhere buried deep in these comments. /terminal-setup does the trick. Thanks @warpdotdev-devx!