Inline Edits
NexusIDE supports AI-powered inline edits that apply changes directly in your editor with a visual diff for review.
How It Works
- Select code in the editor (or place your cursor on a line)
- Press
Ctrl+I/Cmd+Ito open the inline chat - Describe the change you want (e.g., "add error handling", "convert to async/await")
- The agent generates the edit and displays it as an inline diff — green for additions, red for deletions
- 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+Zlike any other editor change - Inline edits create a checkpoint automatically, so you can always roll back
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl+I / Cmd+I | Open inline chat |
Escape | Close inline chat |
Enter | Send the inline chat message |