Eclipse 在按键时恢复对文件的所有更改,无法撤消? [英] Eclipse reverts all changes to file on key press, undo not possible?

查看:25
本文介绍了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.

这篇关于Eclipse 在按键时恢复对文件的所有更改,无法撤消?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆