有没有办法防止Android Studio在文件关闭后保存撤消历史记录?

时间:2016-03-03 15:27:04

标签: android-studio

当我关闭文件(不关闭Android Studio)并重新打开该文件时,我不希望Android Studio保存其撤消历史记录。有没有办法阻止Android Studio在文件关闭后保存文件撤消历史记录?

在NetBeans(或大多数编辑器)中,我喜欢它,一旦我关闭并重新打开该文件,我就无法撤消文件中的任何内容。是否有一些我可以更改的设置或一些配置文件我可以修改以防止Android Studio在关闭该文件后记住文件撤消历史记录?我在“设置......”中找不到任何明显的东西,但我可以忽略它。

2 个答案:

答案 0 :(得分:1)

You've an interesting question. I'm also overlooked all settings and can't find anything similar.

But I find, that Android Studio (based on IntelliJ IDEA) have special mechanism called Local History. It locally stores all your changes. And accroding to the documentation:

Local history is cleared when you install a new version of IntelliJ IDEA or when you invalidate caches. Therefore, check in the changes to your version control system before performing these operations.

I didn't find any other ways to clear Local History, so I think there are no ones.

答案 1 :(得分:0)

在主菜单上,选择“文件”|使高速缓存/重新启动无效。