Skip to content

Inline Edit

Adithya Chinnakkonda edited this page Oct 14, 2026 · 2 revisions

Inline Edit (Ctrl+K)

Select code, press Ctrl+K (Cmd+K on a Mac) and say what to change. Kural shows a read-only diff, red and green; keep it (Ctrl+Enter, Cmd+Enter on a Mac, or Accept above it) or reject it (Ctrl+Shift+Backspace, Cmd+Shift+Backspace on a Mac, or Reject). With nothing selected, Ctrl+K proposes new code at the cursor.

It uses the chat's model (Claude or Your Own Model).

Apply on a code block in the chat works the same way: Kural previews the proposed code before applying it.

The original file stays unchanged until Accept, including with Auto Save enabled. If you edit the original while reviewing, Kural discards the proposal to preserve your edits.

Inside the editor, Ctrl+K is Kural's, so VS Code's two-key Ctrl+K shortcuts don't work there; Git's moved to Ctrl+Alt+K. Use Ctrl+/ to comment code.

Clone this wiki locally