Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use external diff viewers in eclipse? Is there any diff viewer available for eclipse inbuilt?

enter image description here

I am working on a java project in eclipse . Every time commit a file i want to view what are all the changes have done in this file . In eclipse its hard to analyze which lines are removed , added , changed etc . Please give your suggestions on this .

like image 750
kannanrbk Avatar asked May 16 '12 16:05

kannanrbk


People also ask

How to configure Compare tool in Eclipse?

Code Compare in EclipseStart the Eclipse IDE. In the Window menu select Preferences. In the tree area of the displayed Preferences window, expand the General node and navigate to the Compare/External Tool page. In this page, use the External diff executable field to specify the location of the Code Compare executable.

How do I use beyond compare in Eclipse?

To run Beyond Compare, WinSCP or Putty click on the icons in the main Eclipse toolbar. There are also many actions that are found in the Compare With and Team context menus which are found by right-clicking on a file or folder in the Eclipse Package Explorer or Navigator views.


1 Answers

You don't say what version control system you're using, but most of them (cvs, svn, git, and perforce, that I know of) implement the Team > Synchronize functionality. The Synchronize perspective provides a preview of both outgoing and incoming changes; you can easily see what has changed that you need to commit side-by-side with what has changed in the repository that you have yet to receive. Right-click a project (or any other selection of version-controlled resources) and select Team > Synchronize. It's virtually identical to what you show from Netbeans.

You can also use the Compare With menu and/or whatever options are presented by your version control system under the Team menu for individual files.

The colors in the compare view can be customized to your liking, via Preferences > General > Appearance > Colors and Fonts (look for Text Compare in the tree).

For Mercurial, the MercurialEclipse plugin implements this Synchronize view.

like image 61
E-Riz Avatar answered Sep 28 '22 12:09

E-Riz