Eclipse 在按键时恢复对文件的所有更改,无法撤消?
不知何故,我只是在 eclipse(android 开发)中按下了一些键或组合键,eclipse 突然恢复了我正在处理的文件的先前版本.CTRL Z/Y 没有帮助.我是否必须重新对文件进行所有更改!??
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!??
我刚才能做什么?我不想再发生这样的事情了.知道这可能会在某个时候再次发生,我怎么可能继续使用 eclipse.
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.
谢谢,
推荐答案
我想我遇到了同样的问题,几分钟后就解决了.
I think I had the same problem and figured it out after a few minutes.
Eclipse 会保留本地版本历史记录,并且通过错误的单击或错误的按键可能会以某种方式恢复到以前的版本,我不确定是什么原因造成的.
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.
相关文章