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

4 Likes