Tech
Using Ctrl+Enter to Submit in OpenCode and Enter for New Lines
Another OpenCode behavior I wanted to change was message submission.
By default, pressing Enter submits the current prompt. If you are used to chat tools where Enter inserts a new line and Ctrl + Enter sends, this makes accidental submissions easy.
My preferred setup is:
Enter : insert a new line
Ctrl + Enter : submit the prompt
OpenCode configuration
Edit your OpenCode configuration file and update the keybindings:
{
"keybinds" : {
...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to