If you don’t really care about spaces vs tabs when comparing files in visual studio using the built in compare tool you can use the info found here to get VS to ignore white space.
Tools -> Options -> Source Control -> Visual Studio Team
Foundation Server -> Configure Users Tools.. -> Add ->
Add “%5 /ignorespace” at the end of the “arguments” textbox.
That’s it.