Intellij撤消历史记录的大小,不是多少? [英] Intellij undo history size, not much?

查看:628
本文介绍了Intellij撤消历史记录的大小,不是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够基本上撤消一个文件中几个小时的工作.我不确定如何配置.

I like to be able to undo basically several hours of work in a file. I am unsure how to configure this.

在IntelliJ设置中,我尝试使用的剪贴板设置为999、9999和99999,但在撤消操作时仍然太短.

In IntelliJ settings, the clipboard settings I have tried with are 999 and 9999 and 99999 but it still too short on undos.

如何增加这个?

推荐答案

在Intellij设置中,我尝试使用的剪贴板设置为999、9999和99999,但撤消操作仍然太短.

In Intellij settings the clipboard settings I have tried with are 999 and 9999 and 99999 but it still too short on undos.

我没有看到剪贴板设置"与撤消限制"(或完全与撤消")有关.要解释吗?

I've failed to see what "clipboard settings" have to do with the "undo limit" (or with "undo" at all). Care to explain?

本地历史记录绝对是在此处使用的方法,因为它可以跨会话,文件和整个文件夹使用-您可以一键撤销非常复杂的操作(例如,替换/重构多个文件)

Local History is definitely the way to go here as it works across sessions, files, and whole folders -- you can undo very complex operations in one click (e.g. replace/refactor in multiple files).

无论如何::如果本地历史记录"很复杂,或者您是一个顽固的人,喜欢连续多次击 Ctrl + Z 而不是几次点击本地历史记录",您可以增加撤消限制(默认为100步).为此:

In any case: if Local History is to complex or you are a hardcore person who prefers to hit Ctrl + Z quite a few times in a row instead of few clicks with Local History, you can increase undo limit (which is 100 steps by default). For that:

  • 打开注册表(Help | Find Action...并键入registry)
  • 找到undo.documentUndoLimit条目并将您的限制设置为更高的数字(例如1000).
  • Open Registry (Help | Find Action... and type registry)
  • Find undo.documentUndoLimit entry and set your limit to a higher number (e.g. 1000).

PS 可能需要重新启动IDE.

P.S. IDE restart may be required.

这篇关于Intellij撤消历史记录的大小,不是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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