AI-powered in-line edits
⌘+I
on Mac or Ctrl+I
on Windows/Linux.
From there, you can enter a prompt in natural language and hit the Submit button (or ⌘+⏎
/Ctrl+⏎
) to forward the instruction to the AI.
Windsurf will then provide a multiline suggestion that you can accept or reject.If you highlight a section of code before invoking Command, then the AI will edit the selection spanned by the highlighted lines.
Otherwise, it will generate code at your cursor’s location.⌥+A
/Alt+A
, ⌥+R
/Alt+R
, and ⌥+F
/Alt+F
, respectively).Diffable
and implements the Myers diff algorithm”
that contains a clear objective and references to relevant context may help the model even more.