How to switch the order of files (original and modified) in Eclipse Compare window?
Asked Answered
M

4

18

When comparing two files, for example during a commit, Eclipse shows the original version on the right and modified on the left:

Compare Window Screenshot

However, I would prefer to see the original version on the left and modified on the right. Is it possible?

Mease answered 18/2, 2012 at 11:32 Comment(1)
You can vote up the bug here.Windlass
S
4

Eclipse Neon.2 (4.6.2) has a button to swap the views:

enter image description here

Shutdown answered 6/2, 2017 at 11:3 Comment(1)
It took the time to be implemented, but it is here (not sure from when).Antiquate
P
1
  1. You can either swap the views for every compare, as one answer suggests:

    button to swap compare order

  2. Or you can make the swapped order be the default for all compares:

    Windows --> Preferences --> General --> Compare/Patch

    Select the Text Compare tab, and mark the check-box of Swap left and right

    Compare/Patch -> Text Compare -> Swap left and right

Phone answered 15/3, 2021 at 7:49 Comment(0)
H
0

I think it's just depending of which file you're selecting first. I mean, choose a file, and select compare to .. and choose another one. Next choose the second one and compare to the first one, they'll swap in your window :)

Highball answered 28/8, 2015 at 17:20 Comment(1)
This would be better as a comment once you have the reputation. See the how to answer page for help understanding what makes a quality answer.Attu
B
0

This behaviour is influenced by what exactly is compared. When comparing two local files the view is influenced by the first & second selection. If using e.g. GIT the left hand side will always be what is present locally, the currently checked-out branch or local changes - so changing the branch will influence the view. When using SVN it is mostly the same, so left hand locally, right hand remotly.

Burnside answered 20/6, 2016 at 9:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.