Local history configuration in IntelliJ IDEA 11

前端 未结 2 747
情歌与酒
情歌与酒 2020-12-08 08:10

In previous versions of IDEA I was able to set how many days back the Local History feature would keep the changes in the source files. For some reason, I cannot find this i

相关标签:
2条回答
  • 2020-12-08 08:34

    Also you should know that maximum value of this setting localHistory.daysToKeep is 23 (working days).
    If you try set this value more than 23, history just will saved nothing at all (after restart IDEA)!
    I discovered this by myself by experimental way =)

    0 讨论(0)
  • 2020-12-08 08:39

    Modify bin\idea.exe.vmoptions (idea.vmoptions on Linux, Info.plist on Mac), add the following line:

    -DlocalHistory.daysToKeep=5
    

    It was the only configurable option removed from the settings user interface.

    Another way is to use Help | Find Action, type Registry in the box, ensure that Include non-menu actions option is enabled, select the Registry result from the list, press Enter:

    Registry

    Note that the default value is 5 working days.

    0 讨论(0)
提交回复
热议问题