Bug 155472 - diff between 2 files both outside NetBeans
diff between 2 files both outside NetBeans
Status: RESOLVED WORKSFORME
Product: utilities
Classification: Unclassified
Component: Diff
6.x
All All
: P2 (vote)
: TBD
Assigned To: Tomas Stupka
diff-issues@utilities
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-15 14:08 UTC by ddv36a78
Modified: 2013-09-22 15:30 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ddv36a78 2008-12-15 14:08:52 UTC
I have installed Cygwin on my laptop just in order to compare files on my hard drive.
I would be glad to use the diff NetBeans feature to do the same thing, while just staying in NetBeans and using a single
tool.

One idea to do so is to have the "Diff" entry always displayed into the "Tools" menu. If no file under NetBeans is
selected, then NetBeans would propose to select one file, and another one, on the hard drive in order to let it make the
diff.

PS : this idea is part of a bigger one about NB distribution written here :
http://www.jroller.com/dmdevito/entry/the_netbeans_missing_distributions
Comment 1 markiewb 2012-01-25 19:30:32 UTC
(In reply to comment #0)
> One idea to do so is to have the "Diff" entry always displayed into the "Tools"
> menu. If no file under NetBeans is
> selected, then NetBeans would propose to select one file, and another one, on
> the hard drive in order to let it make the
> diff.

This is already possible in Netbeans 7.1 (perhaps also in earlier versions).

Step 1: "Menu File->Open File...", then choose file A -> editor with file A will be opened
Step 2: Open the context menu in editor, then choose "Tools->Diff to...", then  choose file B -> Diff of file A to B will be displayed

(Perhaps it is also scriptable via a macro / never tried this...)
Comment 2 markiewb 2013-09-22 15:30:25 UTC
* you can add your root drive/arbitrary dirs/files to the favorites view
* in favorites view now you can select the files you want to compare
* context menu: "Tools->Diff" to diff them

So worksforme.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo