IntelliJ keeps a bunch of cache files in its "system" directory (settings and downloaded plugins are written to a separate config directory).
Is it safe to delete this directory (not while IntelliJ is running), without losing settings? The reason is that I might put it on a tmpfs, which gets cleared on shutdown.
From the main menu, select File | Invalidate Caches. In the Invalidate Caches dialog, you can select additional actions that the IDE will perform while removing the cache files: Clear file system cache and Local History: remove the virtual file system cache together with the information stored in Local History.
When you invalidate the cache, IntelliJ IDEA removes the cache files for all projects ever run in the current version of the IDE. The files will be recreated the next time you open these projects. The IDE also rebuilds the projects if they are built with the native IntelliJ IDEA builder.
Configuration directory The IntelliJ IDEA configuration directory contains user-defined IDE settings, such as keymaps, color schemes, custom VM options, platform properties, and so on. Windows. macOS.
Yes, that is safe. Alternatively, you can invalidate caches from inside IntelliJ by choosing the File -> Invalidate Caches... menu option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With