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 在按键时恢复对文件的所有更改,无法撤消?


基础教程推荐
- 如何在 JFrame 中覆盖 windowsClosing 事件 2022-01-01
- 从 python 访问 JVM 2022-01-01
- Java Swing计时器未清除 2022-01-01
- 不推荐使用 Api 注释的描述 2022-01-01
- 大摇大摆的枚举 2022-01-01
- Java 实例变量在两个语句中声明和初始化 2022-01-01
- 多个组件的复杂布局 2022-01-01
- 验证是否调用了所有 getter 方法 2022-01-01
- 如何在 Spring @Value 注解中正确指定默认值? 2022-01-01
- 在 Java 中创建日期的正确方法是什么? 2022-01-01