Add Setting to Change Chat Input Behavior: Enter for New Line, Cmd+Enter to Send

Currently, in Cursor’s chat interface, pressing Enter immediately sends the message, while Shift+Enter creates a new line. This behavior is problematic for users who frequently write multi-line prompts, as it’s easy to accidentally send incomplete messages by pressing Enter while composing longer text.

Many users, especially those coming from other development tools like Zed, are accustomed to Enter creating new lines and using a modifier key combination (like Cmd+Enter) to send messages. This leads to frequent accidental submissions and interrupted workflows.

7 Likes

Heavy +1 from me. Especially when providing detailed requirements and context in plan mode, I find myself adding new lines to my prompts significantly more often than I send messages. Maybe something like what Teams does where you can switch to an editor mode where enter creates a new line, ctrl+enter sends messages, and you get access to basic text editor features like headings/subheadings and bulleted/numbered lists

1 Like

This is now available on nightly and will be in the next stable release!