locked
? How to ignore spaces when comparing versions ?

    Question

  • When, from Source Code Explorer, you are comparing versions of files, how do you make the compare ignore spaces/whitespace?

    TIA, Matthew.
    Friday, September 30, 2005 2:04 PM

Answers

  • Unfortunately we don't have a handy way to do that on the dialog.  You can use Tools -> Options -> Source Control -> Visual Studio Team Foundation Server -> Configure User Tools... to set up your diff tool and supply command line arguments.  The default diff tool is diffmerge.exe and the command line argument is /ignorespace.  You can run diffmerge /? to see other options.

    Friday, September 30, 2005 2:38 PM
  • In case you're wondering where diffmerge.exe lives (it's been asked before), the default path is "%ProgramFiles%\Microsoft Visual Studio 8\common7\IDE\diffmerge.exe".

    Friday, September 30, 2005 4:39 PM
    Moderator

All replies

  • Unfortunately we don't have a handy way to do that on the dialog.  You can use Tools -> Options -> Source Control -> Visual Studio Team Foundation Server -> Configure User Tools... to set up your diff tool and supply command line arguments.  The default diff tool is diffmerge.exe and the command line argument is /ignorespace.  You can run diffmerge /? to see other options.

    Friday, September 30, 2005 2:38 PM
  • In case you're wondering where diffmerge.exe lives (it's been asked before), the default path is "%ProgramFiles%\Microsoft Visual Studio 8\common7\IDE\diffmerge.exe".

    Friday, September 30, 2005 4:39 PM
    Moderator
  • That'll do fine - thanks!

    Saturday, October 1, 2005 1:26 PM