Solved

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

Posted on 2012-04-04
7
1,352 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

 

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

688 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