问题
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