How to set Cmd+Enter = submit chat, Cmd+Shift+Enter=codebase chat?

(MacOS)

In the chat window, hitting enter submits the chat, which I’d say is pretty lame for most people.

We should instead be able to:

  • hit enter, then continue writing
  • hit cmd-enter to submit
  • hit cmd-shift-enter to do codebase chat

I did the logical/obvious thing of editing the kb shortcuts to this –

{
        "key": "shift+cmd+enter",
        "command": "workbench.action.chat.submitSecondaryAgent",
        "when": "chatInputHasText && inChatInput && !chatInputHasAgent && !chatSessionRequestInProgress"
    },
    {
        "key": "cmd+enter",
        "command": "-workbench.action.chat.submitSecondaryAgent",
        "when": "chatInputHasText && inChatInput && !chatInputHasAgent && !chatSessionRequestInProgress"
    },
    {
        "key": "enter",
        "command": "-workbench.action.chat.submit",
        "when": "chatInputHasText && inChatInput && !chatSessionRequestInProgress"
    }
    {
        "key": "cmd+enter",
        "command": "workbench.action.chat.submit",
        "when": "chatInputHasText && inChatInput && !chatSessionRequestInProgress"
    },

but Cursor is ignoring it.

any ideas appreciated

12 Likes

Odd that this isnt possible. I mean, Gemini Studio has their default as CMD+Enter to submit a chat. Raycast has the option in their AI Chat. Its disappointing that we cannot get this simple ability.

There is a feature request for this, would help to add there your vote and comment :slight_smile:

Where?

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

1 Like

Great QoL feature! Thanks for the rollout.

Just wanted to mention that in 2.5.17 (7b98dcb824ea96c9c62362a5e80dbf0d1aae4770), “Cmd + Enter” seems to enter Plan mode sporadically (rather than send message) on new chats. Does not appear linked to any keyboard commands, but might be linked to the little “Enter Plan mode” popup on longer messages.