Tuesday, March 4, 2008

Compare Two Files in Netbeans6


  1. In the Projects tab, click and select with the ctrl key pressing two files.
  2. Right-click one of the selected files, and select Tools > Diff from the context menu.
  3. The graphical Diff view appears and lets you step through all differences.
Diffrent code blocks will be selected in different colors...

***
this is very important when you want to edit a file..
clone the orginal document(Rgt on doc tab>Clone Document) and edit.. then compare...

Note :

Diff only appears in the Tools menu when two files are selected and in focus.

2 comments:

sharmi sharmi said...

No need to select two files from netbeans. You can also select outside of the file. Just right click on the file which you want to compare and then diff and select another file to compare

Michael said...

Still helpful 8 years later. Thanks.