An Avanade Blogging Community

Welcome to An Avanade Blogging Community Sign in | Join | Help
in Search

Avanade.Employees.JoeF.Blog::Title

Making Visual SourceSafe a Little More Bearable

On my last project we used SourceGear Vault to store all of our source code.  One hack I was able to implement to improve my Vault experience was to integrate WinMerge as the default editor for viewing differences and merging.  WinMerge made me more productive since I could edit the file inside of the program and perform merges without having to check out the file from the server.  I also enjoyed one-key merging*!  Therefore, the first time I called Show Differences after moving back to Visual SourceSafe (VSS) I almost cried.  Then I smiled, because I discovered the Custom Editors tab in VSS options.  Now viewing differences and merging are a hell of a lot nicer!

How to do it:

  1. Download WinMerge
  2. Open Visual SourceSafe
  3. Go to Tools | Options | Custom Editors (last tab)
  4. For "Operation" choose "File Difference"
  5. For "File Extension" enter ".*"
  6. For "Command Line" enter "C:\Program Files\WinMerge\WinMerge.exe" "%1" "%2"
  7. Click "Add"
  8. Choose "File Merge" for the "Operation"
  9. Enter ".*" for "File Extension" again
  10. For "Command Line" enter "C:\Program Files\WinMerge\WinMerge.exe" "%2" "%1" "%4"
  11. Click "Add"

That's it!  Good luck, and if you have any problems, or just want to say how awesome this hack is, feel free to leave a comment letting me know.

*For an improved file viewing/merging experience be sure to turn on "Merge Mode" in WinMerge (File | Merge Mode) and use the arrow keys!

Published Monday, May 14, 2007 1:44 PM by joef
Filed Under: ,

Comments

No Comments
Anonymous comments are disabled
©2006 Avanade Inc. All Rights Reserved.