Reputation: 8126
I have previously asked about an external diff tool for eclipse as I find it hard to see the diffs in the eclipse built in diff as everything is a shade of grey instead of the useful diff viewers in IDEA and Netbeans.
How to use external diff viewers in eclipse? Is there any diff viewer available for eclipse inbuilt?
However, today I used the Code AnalytiX plugin to find similar code and the diff viewer that came up was a lot more visible with changes highlighted in red and green.
e.g.
How can I make the built in eclipse editor behave like that instead of the default greys:
Upvotes: 15
Views: 6848
Reputation: 1325357
I find it hard to see the diffs in the eclipse built in diff as everything is a shade of grey
Not anymore with Eclipse 2019-09. You don't have to change the color of the text itself.
In simple cases such as a 2-way comparison or a 3-way comparison with no merges and conflicts, the Compare Viewer now shows different colors, depending on whether text has been added, removed or modified.
The default colors are green, red and black respectively.
In Dark mode, the default "black" for edits is hard to see. You may want to change it (for example, to orange)
Upvotes: 3
Reputation: 7507
Inside of the properties you can change all the colors and fonts. You are looking for
General -> Appearance -> Colors and Fonts -> Text Compare
Upvotes: 11