I would love to have a side-by-side comparison feature in Cursor that mirrors IntelliJ’s “Compare with Branch” functionality. Specifically:
- Side-by-Side Diff of Two Branches
- Ability to open two branches in a single diff view, listing all changed files and showing a line-by-line comparison.
- Interactive, Selective Change Application
- While viewing the diff, I’d like to pick and apply specific lines or code blocks from one side (branch) to the other. This is particularly useful when I only need partial changes or want to cherry-pick certain fixes.
- Intuitive Merge UI
- For any conflicts, having a clear UI with buttons (e.g., Accept Left/Right/Both) would speed up conflict resolution without leaving the IDE or resorting to manual git commands.
Why It’s Useful:
-
Productivity: Eliminates the need to jump between external diff tools or rely solely on command-line merges.
-
Code Review & Partial Merges: Quickly apply bits of changes from feature branches without merging the entire branch.
-
Consistency: IntelliJ users (and those from similar IDEs) expect this workflow in their day-to-day.
Possible Implementation Ideas:
-
A new command in the Command Palette, e.g., “Compare Current Branch” with that opens a dedicated side-by-side viewer.
-
Buttons or hover-over icons in the diff to “Accept from Left/Right” on a per-line or per-block basis.
-
Integration with the existing source control panel for a seamless Git experience.
Let me know if there’s more detail I can provide or if I can help in testing! This feature would make Cursor even more powerful for teams coming from tools like IntelliJ or advanced diff/merge GUIs.