user1873073
user1873073

Reputation: 3660

Is there a way to save files when they are overwritten by undo?

I just lost a few hours of work because I did an undo and get latest changes. I tried using a decompiler to get the code back but the dlls were replaced on the get latest changes.

Would it be possible to have tfs or visual studio save changes locally when I do an undo? I can periodically clear out the directory on my own so it doesn't get huge.

Upvotes: 0

Views: 70

Answers (2)

elifekiz
elifekiz

Reputation: 1506

you can download this extension. Visual Studio History Extension

And run it, restart your visual studio. It keeps your changes, when you undo any item, that is a change. Therefore it keeps your changes before from undo.

Upvotes: 0

CodeCaster
CodeCaster

Reputation: 151594

Undo asks "are you sure?". Don't click "Yes" if you aren't. Anyway, see your AutoRecover directory, but that's cleared on each successful save.

See Is there a Visual Studio equivalent to Eclipse's Local History? for some alternatives.

Upvotes: 1

Related Questions