Where does IntelliJ IDEA keep local history files?

柔情痞子 提交于 2019-12-12 07:47:02

问题


My company has a policy about keeping source code encrypted on local developer machines. Where does IntelliJ IDEA keep the copy of the code changes that is used to drive its local history feature?


回答1:


They are stored in ${System}/LocalHistory. See this IDEA document for the location of the IntelliJ IDEA System directory on various platforms.

As a side note, if you want to turn local history off, you can do so in the maintenance registry. On windows, you can access it via Ctrl+Alt+Shift+/. Select "Registry" from the popup. In the registry dialog, find the entry localHistory.daysToKeep and set it to zero. (I've never actually tried setting it to zero, but I am assuming it would work for you.)




回答2:


After the information provided by Javaru. For example, PyCharm saves the Local History at:

~/Library/Caches/PyCharm2017.1/LocalHistory

More information: Project and IDE Settings, Directories used by the IDE to store settings, caches, plugins and logs



来源:https://stackoverflow.com/questions/22567420/where-does-intellij-idea-keep-local-history-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!