In IntelliJ on OS X, how do you clear out all glob

2019-01-16 02:24发布

问题:

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?

回答1:

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



回答2:

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


回答3:

For AppCode (Objective C IDE) 1.0.4, on OSX, the path is: ~/Library/Preferences/appCode10



回答4:

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.



回答5:

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