claude-code - 💡(How to fix) Fix Feature request: side-by-side diff option for Edit/Write/MultiEdit confirmation prompts

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Add a setting to render the diff in the Edit / Write / MultiEdit confirmation prompt as side-by-side (before / after columns with character-level highlights) instead of the current stacked unified diff.

Root Cause

Add a setting to render the diff in the Edit / Write / MultiEdit confirmation prompt as side-by-side (before / after columns with character-level highlights) instead of the current stacked unified diff.

Code Example

6 -Old line of text here.
6 +New line of text here.

---

{ "editorDiffStyle": "side-by-side" }
RAW_BUFFERClick to expand / collapse

Summary

Add a setting to render the diff in the Edit / Write / MultiEdit confirmation prompt as side-by-side (before / after columns with character-level highlights) instead of the current stacked unified diff.

Current behavior

When the agent proposes a file change, the confirmation prompt shows a stacked unified diff:

6 -Old line of text here.
6 +New line of text here.

For long lines or refactors that move blocks around, this is hard to scan at a glance.

Proposed behavior

Add a setting in ~/.claude/settings.json (and /config):

{ "editorDiffStyle": "side-by-side" }

Possible values: unified (default, current behavior) and side-by-side. Render with the same character-level highlights git-delta --side-by-side produces.

Alternatives tried locally

  • PostToolUse hook piping git diff to delta --side-by-side — works, but renders after approval, not in the confirmation prompt itself.
  • PreToolUse hook writing rendered output to /dev/tty — fragile. Claude's TUI redraws (e.g. on terminal resize or when alternate-screen takes over) clobber the output, so the side-by-side disappears unpredictably.

A native toggle would solve both: rendered before approval, and not fighting the TUI for control of the screen.

Use cases

  • Reviewing wording changes in long Markdown lines
  • Refactors that move blocks of code around
  • Edits where character-level highlights matter (e.g. Clojure keyword tweaks)

Environment

  • Claude Code v2.1.132
  • macOS, zsh

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING