Project Description

Visual Studio Comparison Tools is a add-in for Visual Studio which uses external tools to compare files, folders and clipboard. Features: Comparing two files, selecting folders for comparison from the solution explorer and comparing (and merging) clipboard to a file or selected area in a file

Prerequisites
  • Requires WinMerge executable to be installed in "C:\Program Files\WinMerge\WinMergeU.exe"

Installation
  • Running the setup will copy files "VisualStudioComparisonTools.dll" and "VisualStudioComparisonTools.addin" to Visual Studio's add-in directory. The VisualStudioComparisonTools add-in can be used next time Visual Studio is restarted.

Usage
  • Compare to Clipboard has two different compare modes:
    • Clipboard to File comparison
      • Right click text in the editor and select "Compare with clipboard". The active file will be saved.
      • Winmerge will open and changes from the clipboard (right panel, read only) can be merged to the file (left panel).
      • Saving will save the changes to the real file.
    • Clipboard to Text editor selection comparison
      • Select text in a file. Right click the selected text and select "Compare with clipboard". The active file will be saved.
      • Winmerge will open and changes from the clipboard (right panel, read only) can be merged to the selection (left panel).
      • Saving and exiting winmerge will merge the changes inside the selection to the file where the selection was.
  • Compare selected files shows up when two files are selected in the solution explorer.
    • The comparison is done totally in the merge tool and both files are editable.
  • Compare selected folders shows up when two directories are selected in the solution explorer.
    • The comparison is done totally in the merge tool.

Other information
  • VisualStudioComparisonTools will use solution's directory to store temporary files.
    • If a solution isn't open, the system's temporary directory will be used.
    • In normal usage the temporary files should be deleted.

Problems
  • If the "Compare to Clipboard" text doesn't appear in the right click context menu, try the following:
    • Go to the command prompt. Go to the location of devenv.exe (for example "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE")
    • Write "devenv.exe /resetaddin VisualStudioComparisonTools.Connect" and press enter.
  • If you encounter any problems, copy the file "VisualStudioComparisonTools.dll.log4net" from the application directory to the location of devenv.exe.
    • Visual Studio 2005
      • C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
    • Visual studio 2008:
      • C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE

Other used libraries
Known bugs
  • Always after opening visual studio, the right click menu has both Compare to clipboard and Compare files in the context menu.
    • If two files are selected, the compare to clipboard will not do anything.
Last edited Aug 15 2008 at 7:17 PM by mikkoha, version 4

 

Want to leave feedback?
Please use Discussions or Reviews instead.

Archived page comments (2)

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Version 2009.6.1.15196