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

ぐ巨炮叔叔 提交于 2019-12-19 03:23:07

问题


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 does not help. Do I have to do all my changes to the file again!??

And WHAT could I have just done? I don't want that to happen anymore. How could I possible continue working with eclipse knowing this could happen again sometime.

Thanks,


回答1:


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.



来源:https://stackoverflow.com/questions/16993513/eclipse-reverts-all-changes-to-file-on-key-press-undo-not-possible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!