[BUG] Shift+Enter executes prompt instead of creating new line
Resolved 💬 3 comments Opened Jan 26, 2026 by rstar327 Closed Jan 30, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When using Claude Code in the terminal, pressing Shift+Enter executes the prompt instead of creating a new line.
This makes it difficult to write multi-line prompts or code in the CLI.
What Should Happen?
Shift+Enter should create a new line in the prompt input, allowing users to write multi-line prompts. Enter should execute the prompt.
Error Messages/Logs
Steps to Reproduce
- Open terminal (CMD or Git Bash on Windows)
- Run
claude - Start typing a prompt
- Press Shift+Enter to try to create a new line
- Instead of new line, the prompt is executed
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.19
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗