附加组件

选择性差异暂存

Selective diff staging

逐块审查并暂存代码差异

实时预览

提示词正文

Build a selective diff staging view with Tailwind CSS: a file list sidebar with per-file changed-line counts, and a main pane rendering the unified diff with green added / red removed line backgrounds, split into hunks with a stage checkbox per hunk. Allow staging or discarding individual lines within a hunk, show staged hunks with a dimmed "staged" badge, and provide a summary bar (12 hunks, 5 staged) with stage-all and commit actions. Keep line numbers in a gutter column and make the whole view horizontally scrollable without breaking the gutter.

提示词保持英文原文——直接粘贴进 Claude、Cursor、v0 或任何 AI 编程工具即可使用。

怎么用

侧栏文件+变更行数;unified diff 绿增红删;按 hunk/行暂存;汇总栏;行号槽固定。

同类提示词 · 附加组件

© 2026 Genisource Vibe · 提示词详情