Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to ignore white space when comparing source in Visual Studio / TFS?
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COYou should be very careful with this option as the TFS merge tool can't tell the difference between white space in code and whitespace in a string literal. A far better solution is to get the entire team to use the same standards for white space in code.
      singulars
    2. CO@Keith: The literal issue is handy to know - I hadn't noticed that. However, team standards is not always the issue. If I wrap a block of code in a condition it will automatically indent causing whitespace in front of every row. I only really want to see the If/End statements highlighted as changes, not the whole block in between.
      singulars
    3. COI'd want the opposite - everything in the block highlighted. More importantly it this doesn't just affect the UI highlight, it also changes how the tool actually does merges. Suppose you merge with someone's change - another `If` block that overlaps with your `If` block. If you ignore whitespace you'll get a 'safe' merge (4 single line changes), while if you don't you'll get a conflict to manually fix (2 overlapping blocks). Worst of all - if the former then that code will still compile (it's now a nested `If`) so it won't be obvious that the corrupt merge has messed up both your changes.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload