Original Poster: u/Fast-Taste-177.
hi,
We love writing multi-paragraph messages. However, it is very annoying to press Shift+Enter for a line break, and easy to press Enter by mistake and submit the message.
Please add a configuration to switch the two.
And my reason for this is:
do you know how annoying is when you do a typo, trying to fix it and your finger hits slightly off to enter…
small screens, aka. mobiles, don’t send when hitting enter (and that is good)
This keybinding works in vscode, but not in antigravity
[
// 1. Unbind the default "Enter" key for submitting the chat.
// Using a broad context 'inChatInput' to be safe.
{
"key": "enter",
"command": "-workbench.action.chat.submit",
"when": "inChatInput"
},
// 2. Rebind "Enter" to insert a newline character.
{
"key": "enter",
"command": "type",
"args": { "text": "\n" },
"when": "inChatInput"
},
// 3. Bind "Ctrl+Enter" on Windows/Linux to submit the chat.
{
"key": "ctrl+enter",
"command": "workbench.action.chat.submit",
"when": "inChatInput && !isMac"
},
// 4. Bind "Cmd+Enter" on macOS to submit the chat.
{
"key": "cmd+enter",
"command": "workbench.action.chat.submit",
"when": "inChatInput && isMac"
}
]
Auto Post via Workern.