Intellij undo history size, not much?

后端 未结 3 828
情话喂你
情话喂你 2020-12-24 02:34

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

In IntelliJ settings, the clipboard settings I have tried wi

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-24 03:15

    The "Maximum number of contents to keep in clipboard" setting has nothing to do with undos.

    In fact, there is no configurable "undo history size" setting in IntelliJ. See this support issue:

    For rolling back complex code changes gone awry, a far better option is to use the local history.

    Local History is available under the menu "VCS" -> "Local History" -> "Show History". The feature is explained as:

    IntelliJ IDEA tracks any changes you make to your source files or any other file, as well as the changes that affect a directory’s content and structure. This feature will protect you from any accidental losses or modifications, even if made by other applications outside IntelliJ IDEA. Setting version labels is also available. Any time you can inspect the history of either a particular file or directory and rollback to any of its previous versions.

提交回复
热议问题