Solved

How can I get a Compare operation in TFS to ignore whitespace?

Posted on 2012-04-04
7
1,167 Views
Last Modified: 2012-04-15
I'd like to set an option in TFS so that when I compare files, differences in whitespace are ignored.
0
Comment
Question by:jobrems
  • 5
  • 2
7 Comments
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 37809996
http://msdn.microsoft.com/en-us/library/6fd7dc73%28v=vs.80%29.aspx

Use the /ignorespace option:
/ignorespace     Does not highlight white-space differences between the compared files.
0
 

Author Comment

by:jobrems
ID: 37812073
where do I use that?
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 37813005
Here is how you use it
http://msdn.microsoft.com/en-us/library/6fd7dc73%28v=vs.80%29.aspx

ps.  The link is the same one as my earlier comment.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:jobrems
ID: 37813792
what I am looking for is a way to configure the Compare facility in TFS so that all compares are done ignoreWhitespace. In Visual SourceSafe, if you recall, there was a checkbox that could be selected which configured VSS to compare in this way. Is there no such option in TFS? It is not very convenient to have to run a command line everytime I want to diff files.
0
 

Accepted Solution

by:
jobrems earned 0 total points
ID: 37827998
I resolved my own question: install a file comparison program on your machine (such as Beyond Compare or ExamDiff). Integrate the program into Visual Studio by following these steps:
Tools > Options > Source Control > Visual Studio Team Foundation Server;
press the Configure User Tools... button.
For Extension, enter .*; for Operation, choose Compare;
for Command, enter path of executable (e.g., C:\Program Files\Beyond Compare 3\BComp.exe);
for Arguments, enter %1 %2 /lefttitle=%6 /righttitle=%7  /nobackups.

With these programs, it is easily possible to specify ignore whitespace (and many other options).
0
 

Author Comment

by:jobrems
ID: 37828046
please close this question and leave info in KnowledgeBase
0
 

Author Closing Comment

by:jobrems
ID: 37847972
I never got the answer I was looking for. So , I found a way to do it myself.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now