阻止Intellij防止由于项目中的全局更改而撤消文件中的更改 [英] Stop Intellij from preventing from undo changes in a file due to changes globally in the project

查看:46
本文介绍了阻止Intellij防止由于项目中的全局更改而撤消文件中的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时候,当您撤消时,也许不是连续进行,Intellij将抱怨由于某些全局更改而无法撤消 .即使您只想撤消操作,也可以烦人来绕过,迫使您使用本地 历史记录.

Sometimes, when you undo, maybe not in serial, Intellij will complain that it is unable to undo due to some global changes which can be very annoying to get around forcing you to use local history even though all you want is undo.

我了解到,如果您重构然后在这些文件中进行了更改,然后撤消了一个文件,该文件将需要倒带自那以后可能已更改的其他文件,这会使撤消变得困难.

I understand that if you refactored then changed in those files, and then you undo in a file that would require a rewind of those others which might have changed since, makes the undo difficult to perform.

至少在 时,您应该只能继续撤消 本地不管,如果该更改影响了其它文件.

At least then you should be able to continue to undo locally only, regardless if that change affected other files.

意味着撤消操作只会影响此文件,而保留所有其他文件的完整性.这是重置该文件来自 本地 历史记录时的行为,这是耗时的,并且常常使人烦恼通过解析.

Meaning the undo will only affect this file and leave all others intact. That is the behavior you would get when resetting that file from local history which is time consuming and often annoying to parse through.

有时在重构时,您可能需要在本地复制一些代码,而撤消有时是到达该处并返回的非常有用的方法.

Sometimes when refactoring you might need to go back locally to copy some piece of code, and undo is sometimes pretty useful way of getting there and back.

也可能是由于诸如IDEA不能使用的技巧手动操作重构环境的原因.

It could also be for reasons such manually manipulating the refactoring environment, using tricks the IDEA can not.

使用本地历史记录太麻烦了.撤消确实没有像5年前那样工作.

Local history is just obtrusive to use. The undo did not use to work like this 5 years ago for sure.

我们可以启用某些功能吗?

可能与以下内容有关: 解释Intellij undo.documentUndoLimit和undo.globalUndoLimit

Maybe related: Explanation of Intellij undo.documentUndoLimit and undo.globalUndoLimit

推荐答案

没有办法. IntelliJ IDEA没有这样的选项/功能.

There is no way to do it. IntelliJ IDEA doesn't have such an option/feature.

这篇关于阻止Intellij防止由于项目中的全局更改而撤消文件中的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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