Eclipse reverts all changes to file on key press, undo not possible?

后端 未结 1 617
感情败类
感情败类 2021-01-06 01:11

Somehow I just pressed some key or key combination in eclipse (android development) and eclipse suddenly restored the previous version of the file I was working on. CTRL Z/Y

相关标签:
1条回答
  • 2021-01-06 02:08

    I think I had the same problem and figured it out after a few minutes.

    Eclipse keeps a local version history and it is somehow possible with a wrong click or the wrong key-press to revert back to a previous version I am not sure what caused it.

    To fix it right-click on the file name and then go down to "Replace With"->"Previous from Local History" you should now be able to find the correct version and get back your lost work.

    0 讨论(0)
提交回复
热议问题