neteye-platform/cc-split-diff-view
我做了一個可並排顯示差異的 Claude Code 模組
一位 Reddit 使用者分享 cc-split-diff-view,這是一個開放原始碼的 Claude Code 模組,可將 Edit 和 Write 差異呈現為兩個並排欄位,具備真實行號、收合的未變更區段,以及會依佈景主題調整的語法醒目提示。貼文包含 GitHub 儲存庫連結。
關於這個 mod
這個模組會將 Claude Code 的 Edit 和 Write 工具產生的差異重繪為並排欄位:左側是刪除的行,右側是新增的行,兩側都有真實行號,未變更區段會收合,並使用 Claude Code 本身的差異色彩與語法醒目提示(會依佈景主題調整)。作者是在 Claude Code 2.1.287 版開始提供模組後打造這個模組,並在 https://github.com/neteye-platform/cc-split-diff-view 提供原始碼。
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add neteye-platform/cc-split-diff-view claude plugin install cc-split-diff-view@neteye-platform
原文 / README
Hi everyone! This is my first post in this subreddit. I wanted to share something I built: cc-split-diff-view , a Claude Code mod for displaying diffs side by side. When Claude Code modifies a file, the changes are normally shown in a unified diff view. Personally, I prefer seeing removed and added lines next to each other because it makes the changes easier to understand. It’s subjective, of course 😅 When mods became available in Claude Code (with version 2.1.287), I thought I would try building one to get the diff view I prefer. The mod redraws the diffs generated by Edit and Write in two side-by-side columns: removed lines on the left added lines on the right real line numbers on both sides unchanged sections collapsed Claude Code’s own diff colors and syntax highlighting (theme aware) cc-split-diff-view demo screenshot It’s open source and available here: https://github.com/neteye-platform/cc-split-diff-view I hope it can be useful to others who prefer side-by-side diffs. Feedback and suggestions are very welcome! EDIT: added screenshot submitted by /u/oskarnrk to r/ClaudeCode [link] [comments]
