Skip to content

Inline Edits

NexusIDE supports AI-powered inline edits that apply changes directly in your editor with a visual diff for review.

How It Works

  1. Select code in the editor (or place your cursor on a line)
  2. Press Ctrl+I / Cmd+I to open the inline chat
  3. Describe the change you want (e.g., "add error handling", "convert to async/await")
  4. The agent generates the edit and displays it as an inline diff — green for additions, red for deletions
  5. Review the diff and click Accept or Reject

Inline Diff View

When the agent proposes a change, you see it directly in the editor:

  • Green highlighted lines — New or modified code the agent wants to add
  • Red highlighted lines — Code the agent wants to remove
  • Accept button — Apply the change
  • Reject button — Discard the change and restore the original code

The diff is rendered as editor decorations, so you can scroll through the change in context with the surrounding code.

Use Cases

  • Refactoring — "Rename this function and update the docstring"
  • Bug fixes — "Fix the off-by-one error in this loop"
  • Type annotations — "Add TypeScript types to these parameters"
  • Error handling — "Wrap this in a try/catch with proper error messages"
  • Documentation — "Add JSDoc comments to this class"
  • Conversion — "Convert this callback to async/await"

Tips

  • Be specific about what you want changed — the more context, the better the result
  • Use inline edits for focused, single-file changes
  • For multi-file or complex refactoring, use the Agent Panel in Edit or Agent mode
  • You can undo an accepted edit with Ctrl+Z / Cmd+Z like any other editor change
  • Inline edits create a checkpoint automatically, so you can always roll back

Keyboard Shortcuts

ShortcutAction
Ctrl+I / Cmd+IOpen inline chat
EscapeClose inline chat
EnterSend the inline chat message

Released under the MIT License.