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 .
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With