In IntelliJ on OS X, how do you clear out all global setting info, licensing etc. (external to any project)
MacosSettingsIntellij IdeaMacos Problem Overview
I am having some low level issues with IntelliJ on my mac, I really want to just zero everything out and start over. But even after removing the application and re-installing it, IntelliJ still remembers things like what the last project was, what licensing key to use etc. Where is this information stored? And what is the best way to clear it out?
Macos Solutions
Solution 1 - Macos
Normally information like this will be found in one of the following places in OS X:
/Users/username/Library/Preferences/AppName
/Users/username/Library/Preferences/com.appname.plist
/Users/username/Library/Application Support/AppName
/Library/Preferences/AppName
/Library/Preferences/com.appname.plist
/Library/Application Support/AppName
If the app adheres to the standard OS X conventions you weill find info in one or all of these places. If it doesnt store here you might check for a /Users/username/.intellij
folder or something similar in your home directory
Solution 2 - Macos
I just ran through this and here is the list of files that I had to delete for IntelliJ 13:
~/Library/Preferences/com.jetbrains.intellij.plist
~/Library/Preferences/com.jetbrains.intellij.plist.lockfile
~/Library/Preferences/IntelliJIdea13
~/Library/Caches/IntelliJIdea13
~/Library/Application Support/IntelliJIdea13
~/Library/Caches/com.jetbrains.intellij
~/Library/Logs/IntelliJIdea13
~/Library/Saved Application State/com.jetbrains.intellij.savedState
Solution 3 - Macos
For AppCode (Objective C IDE) 1.0.4, on OSX, the path is: ~/Library/Preferences/appCode10
Solution 4 - Macos
I just checked, and IntelliJ IDEA (at least 9.x versions) seems to store its global settings in
~/Library/Preferences/IntelliJIdea90CE/
Update: IntelliJ IDEA 10 uses ~Library/Preferences/IntelliJIdea10/
and 12 ~Library/Preferences/IntelliJIdea12/
. You'll probably find it for whatever version you're on.
(Where ~ is your home directory.)
Best way to clear it? Well, just delete the whole directory. :-) Or, if you suspect there might be something useful there after all, move it to a new name.
Solution 5 - Macos
run the following commands in terminal to remove completely. worked for me
rm -Rf ~/Library/Preferences/com.jetbrains.intellij.plist
rm -Rf ~/Library/Preferences/com.jetbrains.intellij.plist.lockfile
rm -Rf ~/Library/Caches/com.jetbrains.intellij*
rm -Rf ~/Library/Logs/IntelliJIdea13
rm -Rf ~/Library/Saved Application State/com.jetbrains.intellij.savedState
rm -Rf /Applications/IntelliJ*
rm -Rf ~/Library/Preferences/IntelliJ*
rm -Rf ~/Library/Preferences/com.google.intellij.*
rm -Rf ~/Library/Preferences/com.intellij.*
rm -Rf ~/Library/Application\ Support/IntelliJ*
rm -Rf ~/Library/Logs/IntelliJ*
rm -Rf ~/Library/Caches/IntelliJ*
rm -Rf ~/.IntelliJ*
rm -Rf ~/Library/Intellij*
Solution 6 - Macos
For those with newer versions like 2016, here's a guide to tell you all the places where IntelliJ can be at:
https://intellij-support.jetbrains.com/hc/en-us/articles/206544519
Solution 7 - Macos
This always does it for me:
find ~/Library -type d -name 'IdeaIC*' -exec rm -rf {} ';'