Where does IntelliJ IDEA keep local history files?
Local history file location:
(Answer updated to show new locations as they changed in v2020.1)
They are stored in ${idea.system.path}/LocalHistory/
. See the Directories used by the IDE page in the user guide (and this legacy IDEA document) for the location of the IntelliJ IDEA idea.system.path
directory on various platforms. The default locations changed in 2020.1. See the above guide for info if using an older version. Also note the locations can change based on overrides you may have made.
The defaults for the system
directory for 2020.1 and later are:
- Windows:
%LOCALAPPDATA%\JetBrains\<product><version>
- Example:
C:\Users\Snoopy\AppData\Local\JetBrains\IntelliJIdea2020.1
- Mac:
~/Library/Caches/JetBrains/<product><version>
- Example:
~/Library/Caches/JetBrains/IntelliJIdea2020.1
- Linux:
~/.cache/JetBrains/<product><version>
- Example:
~/.cache/JetBrains/IntelliJIdea2022.1
Turning off local history
As a side note, if you want to turn local history off, you can do so in the maintenance registry. On Windows/Linux, you can access it via Ctrl+Alt+Shift+/, or Cmd+Opt+Shift+/ on Mac. 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.)
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