Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio crashing when trying to diff or compare files

I'm using TFS for source control and the other day I undocked my laptop while running VS. I couldn't connect to the internet and then unfortunately there was an unexpected shutdown. Since then I have not been able to go into pending changes and compare the file to it's previous version. When I do, it crashes Visual Studio.

I can change the user tool in Options > Source Control > Visual Studio Team Foundation Server to use a third party diff checker and it works no problem. However, I've gotten used to Visual Studio's diff checker and would like to continue using it, if only because it doesn't open a separate window to diff in.

Since I'm not sure as to the source of the problem, my question is two-fold:

First, how do I fix Visual Studio's diff checker and stop it from crashing every time I try to compare with previous version.

Or, if the issue lies with TFS, why is it crashing and how do I fix it?

like image 556
rockzombie2 Avatar asked Dec 10 '14 21:12

rockzombie2


People also ask

Why does my Visual Studio keeps crashing?

If you experience crashes of Visual Studio, typically when working with a very large solution, your IDE might be out of virtual memory. Typical indicators of the problem include a "one or more errors occurred" message, "the process appears to be deadlocked" message, and OutOfMemory exception in a crash dump.

Can Visual Studio diff two files?

The diff tool of Visual Studio is very good to compare 2 files. You can use it to compare two versions of the same file directly in Visual Studio. But you can also use it to compare 2 files that are not in a solution.


1 Answers

Click on Visual Studio Menu:

  • TOOLS > Options

Then on Left Panel:

  • Text Editor > HTML > Advanced

And finally on Right Panel:

  • Extension Management > Identify Helpful Extensions

Change this setting to false.

This is an old question, but I needed to fix this recently, so the bug still exists!

like image 142
Flinkman Avatar answered Sep 25 '22 01:09

Flinkman