[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2012-04-04
7
Medium Priority
?
1,443 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 45

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 45

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
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

650 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