Keybind setting to "Submit Edit" in Command+K and Chat

Hi Cursor team,

I want to customize the shortcut key to submit a prompt in Command K and Chart, because I want to frequently input multiple lines in a form of Command K and Chat. We can use the combination “Shift + Enter” key to input a new line. However, I want to change the default shortcut key to submit a prompt. I sometimes to make mistakes to start a new line by pressing the Enter key. The preference to change the default keyboard shortcut to Command K and Chat would be useful for Cusor users who frequently input multiple lines prompts.

For instance, Slack app enables us to change the preference when entering the Enter key. By default, it sends messages. However, we can change it to input a new line with the preference. It prevents us from unexpectedly send messages.

When writing a message, press Enter to…
[ ] Send the message
[ ] Start a new line (use Enter to send)
4 Likes

100% you are not alone. Enter key to “send” or “submit” is and ungodly mutation of common sense.

1 Like

But that seems to be the way many other software packages handle this. My muscle memory already knows to Shift-Enter for new lines. So I vote ‘nay.’ Make it optional asxignment!

yes this should be configurable. I agree with @goodlux and it’s a huge pain to be hitting enter and having it submit. E.g. in zed , enter = newline, and cmd+enter = submit.

I’m going to close this as a duplicate of this thread for now, feel free to comment there: