Undo saved file after close

2

I've lost a very important file, because when I'm working on it, and I decide to test something there, I've deleted a very important part in it, and then my PC shuts down, so now I have missing a very important part from there. That was a .php file, and I'm using Zend Studo.

Is it possible to undo last operation after save, if I close the file?

Sorry for such a question, I understand, that this not from programming sphere, but I don't know what to do.

Syom

Posted 2011-12-30T21:39:43.987

Reputation: 129

8You can recreate it from a version control, or at least the last backup. If you don't use a vcs, you maybe realize now, what they are good for. – KingCrunch – 2011-12-30T21:43:12.487

It was local files, and i'm working on windows. – None – 2011-12-30T21:45:20.520

3Next time, back up your work and comment out stuff you don't want instead of deleting it. – None – 2011-12-30T21:46:14.763

So is it impossible ? – None – 2011-12-30T21:47:24.273

1down votes for asking a application question not a programming one. – None – 2011-12-30T22:16:42.567

1@Dagon: No reason to downvote a good question on the wrong website; just flag it for migration. – user1686 – 2011-12-30T23:08:49.447

Answers

2

in zend studio, right click on file in the explorer view, click "Compare With "> "Local History"

Dagon

Posted 2011-12-30T21:39:43.987

Reputation: 121

1

Netbeans has a thing called Local History, which is basically a history of previous versions. I don't know Zend Studio, but it seems it has something similar.

Just like in Netbeans, you can compare versions from different dates, restore sections, etc., take a look here.

jeroen

Posted 2011-12-30T21:39:43.987

Reputation: 111

Eclipse also has this feature. Even though I commit frequently, I would not use an IDE without this feature. – Mawg says reinstate Monica – 2017-06-08T12:05:54.177

It can only restore deleted files, not undo operations. – None – 2011-12-30T22:06:38.867

1

@Syom According to the documentation, it works almost exactly the same as in Netbeans; you can compare versions from different dates, restore sections, etc. Take a look: http://files.zend.com/help/Zend-Studio/comparing_files.htm

– jeroen – 2011-12-30T22:11:59.737