Visual Studio Tip #1: Ignoring Whitespace when Comparing
When comparing files, it's frustrating when the default compare, doesn't ignore whitespace, and many differences are caused by spaces vs tabs.
Solve it, by adjusting the parameters DiffMerge uses.
In Visual Studio:
- Tools->Options
- Source Control->Visual Studio Team Foundation Server
- Click the Configure User Tools button.
Now add an item with the following settings.
- Extension : .*
- Operation : Compare
- Command : C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\diffmerge.exe
- Or: C:*Program Files (x86)*\Microsoft Visual Studio 10.0\Common7\IDE\diffmerge.exe
- Arguments : %1 %2 %6 %7 %5 /ignorespace
Written on June 11, 2013