IDEA,更改缓存和插件目录
Jetbrains家的IDEA,更改缓存和插件目录
一、首先了解下默认存储的位置
Win10的话,IDEA可能在这里:
C:Users用户名AppDataRoamingJetBrains。
在这个目录里面深度浏览,应该能够看到有一个文件夹下存储了config以及system文件夹,这里便存储了插件、IDE配置等内容。 ————————————————
而后退出idea,先在某个地方新建文件夹,将config与system目录剪切进去(本文新建 D:.IDEA文件夹为例)。然后进入IDEA的安装目录,在其bin目录下有一个idea.properties文件,用记事本、notepad++之类的软件打开,修改其中内容:
二、使用步骤
代码如下(示例):
#--------------------------------------------------------------------- # Uncomment this option if you want to customize a path to the settings directory. #--------------------------------------------------------------------- # idea.config.path=${ user.home}/.IntelliJIdea/config # 指定目录加载 idea.config.path=E:/IDE/IntelliJ IDEA 2021.2.3/bin/.IntelliJIdea/config #--------------------------------------------------------------------- # Uncomment this option if you want to customize a path to the caches directory. #--------------------------------------------------------------------- # idea.system.path=${ user.home}/.IntelliJIdea/system # 指定目录加载 idea.system.path=E:/IDE/IntelliJ IDEA 2021.2.3/bin/.IntelliJIdea/system #以下两个目录不用更改,会跟随上面两个目录走 #--------------------------------------------------------------------- # Uncomment this option if you want to customize a path to the user-installed plugins directory. #--------------------------------------------------------------------- # idea.plugins.path=${ idea.config.path}/plugins #--------------------------------------------------------------------- # Uncomment this option if you want to customize a path to the logs directory. #--------------------------------------------------------------------- # idea.log.path=${ idea.system.path}/log #---------------------------------------------------------------------
总结
提示: 目录分隔符为/正斜杠
上一篇:
IDEA上Java项目控制台中文乱码