在 OS X 上的 IntelliJ 中,如何清除所有全局设置信息、许可等(任何项目外部)
我的 Mac 上的 IntelliJ 遇到了一些低级问题,我真的想将所有内容归零并重新开始。但即使删除应用程序并重新安装后,IntelliJ 仍然会记住诸如上一个项目是什么、使用什么许可密钥等信息。这些信息存储在哪里?清除它的最佳方法是什么?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
通常,此类信息可在 OS X 中的以下位置之一找到:
/Users/username/Library/Preferences/AppName
/Users/username/Library/Preferences/com.appname。 plist
/Users/用户名/Library/Application Support/AppName
/Library/Preferences/AppName
/Library/Preferences/com.appname.plist< /code>
/Library/Application Support/AppName
如果应用程序遵循标准 OS X 约定,您将在其中一个或所有位置找到信息。如果它没有存储在这里,您可以在主目录中检查
/Users/username/.intellij
文件夹或类似的内容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我刚刚完成了这个,下面是我必须为 IntelliJ 13 删除的文件列表:
I just ran through this and here is the list of files that I had to delete for IntelliJ 13:
对于 OSX 上的 AppCode (Objective C IDE) 1.0.4,路径为:
〜/库/首选项/appCode10
For AppCode (Objective C IDE) 1.0.4, on OSX, the path is:
~/Library/Preferences/appCode10
我刚刚检查过,IntelliJ IDEA(至少 9.x 版本)似乎将其全局设置存储在
~/Library/Preferences/IntelliJIdea90CE/
更新:IntelliJ IDEA 10 使用
~Library/Preferences/IntelliJIdea10/
和 12~Library/Preferences/IntelliJIdea12/
>。无论您使用什么版本,您都可能会找到它。(〜是您的主目录。)
清除它的最佳方法?好吧,删除整个目录即可。 :-) 或者,如果您怀疑其中可能有一些有用的东西,请将其移至新名称。
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.
在终端中运行以下命令以完全删除。为我工作
run the following commands in terminal to remove completely. worked for me
对于使用 2016 年等较新版本的用户,这里有一个指南,告诉您 IntelliJ 可以位于的所有位置:
https://intellij-support.jetbrains.com/hc/en-us/articles/206544519
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
这总是对我有用:
find ~/Library -type d -name 'IdeaIC*' -exec rm -rf {} ';'
This always does it for me:
find ~/Library -type d -name 'IdeaIC*' -exec rm -rf {} ';'