Lucas Palma Stabile
Lucas Palma Stabile

Reputation: 133

Visual Studio marked all files as changed

Ok, i don't know what happened, but today i opened a solution in my work, got latest version from TFS, a coworker made a lot of changes, that's Ok. But Visual Studio (2015) marked all the files from all projects with changes, and if I compare them to the last version, no changes at all, probably a white space or ending lines problem. But why every file is marked with changes? I heard that anti virus software can make date changes, but that never happened to all files before.

Now i have to look the files to locate the ones that i actually changed, include them and undo the rest, or something happened that i can reverse this? I tried refresh the Team Explorer window and close and opening the solution again and the changes were still there.

I May have check out a single file by accident (miss click), but that was on a single file and I cancelled it.

Just a Tip: I found that you can compare entire folders for changes in files, in that method of comparing, Visual Studio shows correctly the files that i have actually changed, managed to undo all files in this way.

Upvotes: 3

Views: 2478

Answers (1)

PatrickLu-MSFT
PatrickLu-MSFT

Reputation: 51093

Next time if the same issue occurs a work around is to undo your pending changes. When you get the confirmation dialog choose "No to all". Only your real pending changes should be left. This works when you only have changes to files, make sure when selecting the files, you do NOT select newly added files as they will be removed from pending changes.

Compare entire folders for changes in files is also worked, however you still need to manually select files to undo them.

Upvotes: 2

Related Questions