Visual Studio Diff Tool - when is editing allowed?

I am using Visual Studio 2013 and tfs 2013 . Sometimes I make a code change and compare it with the latest version. The diff tool will open and allow me to edit the file in the diff tool. However, in other cases, he will not allow me to edit, but will only read.

Are there any settings or something I need to do for me to always allow editing?

In the database project, I noticed that it never allows me to edit the diff tool. Is there some kind of setting that I need to change?

I searched on the Internet but did not find answers to this. Thanks.

+9
tfs visual-studio
source share
3 answers

Have you tried other comparison tools like WinMerge or Beyond Compare?

In Visual Studio, go

  • Tools -> Options -> Visual Studio Team Foundation Server -> Custom Tools Setup,

  • add the file type extensions you would like to compare, and under Command,

  • enter the path to the diff tool (in my case it is Beyond Compare)

enter image description here

+2
source share

Editing in the Diff Viewer is only allowed for certain file types. It does not support editing .sql files, and there are no VS settings for it.

Visual Studio Diff Window: How to Edit .sql Files

+2
source share

Other answers are correct, but do not cover all cases.

Visual studio will not allow you to edit the file during the comparison if the panel you are trying to edit does not directly match the file in your working directory.

You can easily tell by the address bar on top of the comparison panel. If it ends with HEAD or Index, you cannot edit the file. Then the most common case when you experience this is the process of merging.

0
source share

All Articles