Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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. Taht 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. (Even don't know how to tag it :)

share|improve this question

migrated from stackoverflow.com Dec 30 '11 at 22:37

This question came from our site for professional and enthusiast programmers.

8  
You 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 Dec 30 '11 at 21:43
    
It was local files, and i'm working on windows. –  Syom Dec 30 '11 at 21:45
3  
Next time, back up your work and comment out stuff you don't want instead of deleting it. –  Dan Dec 30 '11 at 21:46
    
So is it impossible ? –  Syom Dec 30 '11 at 21:47
1  
down votes for asking a application question not a programming one. –  Dagon Dec 30 '11 at 22:16

2 Answers 2

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.

share|improve this answer
    
It can only restore deleted files, not undo operations. –  Syom Dec 30 '11 at 22:06
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: files.zend.com/help/Zend-Studio/comparing_files.htm –  jeroen Dec 30 '11 at 22:11

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.