file-difference tool

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There's a file-difference tool bar that has all kind of nifty ways to look at and compare two files. I can find everything except how to actually specify which two files to compare! How the heck do you work this thing? It's not in the help file, of course (that I can find).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I use WinMerge.org.  Which seems to work as well as any file-difference/file-compare tool can.

 

What is meant by "a file-difference tool bar"?   Where is this feature found or located precisely?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Simonetta wrote:
What is meant by "a file-difference tool bar"? Where is this feature found or located precisely?
The fact he posted in the Studio support forum rather suggests he might be talking about some function within AS7.

 

If that is the case then AS7 is just VS2013 so a search for help in that should prove fruitful I guess.

 

EDIT: Google leads here:

 

https://www.visualstudio.com/en-...

Compare two files using the Compare dialog box

You can compare any two files. The files can both reside on the local client, both on your Team Foundation Server, or one on each.

  1. On the menu bar, choose View, Other Windows, Source Control Explorer.

  2. In Source Control Explorer, open the shortcut menu for the file (select the file and right-click) and then choose Compare.

    The Compare dialog box appears.

  3. Specify the two files you want to compare - one under Source Path and the other under Target Path:

    • Type a path, or open the Browse menu, choose Local Path or Server Path, and then browse to choose the file.

    • Choose an option from the Type menu: Changeset, Date, Label, Latest Version, or Workspace Version. Use the fields that appear to specify the version.

  4. Choose OK.

Though it's not clear to me whether that means you need to be connected to a Team Foundation server to use this stuff.

Last Edited: Wed. Aug 31, 2016 - 08:37 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

diff file1 file2  :)

 

I've been using meld for some years now I'm a fraid "winmerge" wont work as good on my linux box :))

http://meldmerge.org/

 

Paul van der Hoeven.
Bunch of old projects with AVR's:
http://www.hoevendesign.com

Last Edited: Wed. Aug 31, 2016 - 09:22 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If we're talking about standalone diff tools in general then for years I was a major fan of kdiff3 but then something I was doing happened to use meld as the diff tool and now I'm hooked on that. You can get builds for both Linux and Windows.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AS7

 

View->Toolbars->Compare Files  (puts some icons on the main toolbar).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

jstampfl wrote:
View->Toolbars->Compare Files (puts some icons on the main toolbar).
Err yes. But OP is asking "then what?"- how do you actually operate it once you have the toolbar icons?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It's a toolbar. Look under "View/Toolbars/Compare Files".

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yep. I can't find any way to actually specify the files to be compared.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK so a bit of googling shows ONE way to use the compare function. While the GUI has "Compare..." on the context menu in the Solution Explorer (or you can add it to a menu using Customize...) the fact is that I can't find anyway to get it to be ungreyed. However this works...

 

On the View menu use "Other Windows" and within that select the entry for "Command Line". A new window appears with a text prompt. Start typing the word "Tools" and you will find what you are trying auto-completes. In the list of options find "Tools.difffiles" and let it complete that. Then follow the command with tha name of one of your project files. Again, as you type the first few letters it will offer to auto-complete the name of files in your project. Then type the name of the second file. When you hit [Enter] on the complete command a whole new visual differences window opens up and now you can use the entries on the "compare files toolbar" to do things like moving to next/previous difference and so on.

 

I imagine that if it would ever ungrey the "Compare..." menu entry would presumably have lead to file selector dialogs where the two inputs files could be selected - but I guess the trick is working out what magic is required to get it to un-grey. It may be a case of needing to be connected to a TFS server?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Of all the IDE's I've worked with, this has the poorest visual file compare.  It is well hidden and extremely picky about where the files are.  I haven't found out how to compare the same file in two different solutions without copying the file from the "other" solution into the current solution, giving it a different name.  Then, you have to open the "other" file.  Really???  Please pardon the rant ;-)

The great thing about multitasking is that several things can go wrong at once..