7

I want to compare two files in visual studio (files containing stored procs) So I want to ignore all the "Capital" / "Small" differences in the file.

I opened the command window and used Tools.DiffFiles but its taking the case difference also into consideration

P.S I have already seen this question and answers for it

Community
  • 1
  • 1
Vignesh Subramanian
  • 7,161
  • 14
  • 87
  • 150

1 Answers1

3

Although Visual Studio is asked for explicitly, I recommend a different tool: WinMerge.

It indeed has many options for comparing and merging files. It lacks a 3-way-merge though. Of course WinMerge can optionally ignore case.

Visual Studio can be configured so you can call WinMerge using "Tools / External Tools ...". Then you may even install a toolbar item for it. Quite nice!

Most version control systems allow you to use WinMerge as a compare tool. For example for TFS you open the "Tools / Options ..." menu and there you choose "Source Control / Visual Studio Team Foundation Server". Click on the button "Configure User Tools".

TobiMcNamobi
  • 4,687
  • 3
  • 33
  • 52
  • 1
    I can second the use of WinMerge... I have it as my default comparison tool for TortoiseHG / VisualHG. And also provides Windows Explorer extensions for direct comparison of files or directories – freefaller Mar 17 '15 at 09:42