Eclipse reverts all changes to file on key press, undo not possible?(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 在按键时恢复对文件的所有更改,无法撤消?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Eclipse 在按键时恢复对文件的所有更改,无法撤消?
基础教程推荐
- 如何在不安装整个 WTP 包的情况下将 Tomcat 8 添加到 Eclipse Kepler 2022-01-01
- 如何使用 Stream 在集合中拆分奇数和偶数以及两者的总和 2022-01-01
- Spring Boot Freemarker从2.2.0升级失败 2022-01-01
- 如何对 HashSet 进行排序? 2022-01-01
- 首次使用 Hadoop,MapReduce Job 不运行 Reduce Phase 2022-01-01
- 在螺旋中写一个字符串 2022-01-01
- 如何使用 Eclipse 检查调试符号状态? 2022-01-01
- 由于对所需库 rt.jar 的限制,对类的访问限制? 2022-01-01
- Java 中保存最后 N 个元素的大小受限队列 2022-01-01
- 如何强制对超级方法进行多态调用? 2022-01-01