修改IDEA的缓存目录

Intellij IDEA在第一次启动时,会在${user.home}目录下创建以.IntelliJIdea开头的文件夹,用来存放IDEA的配置信息、插件和缓存信息。缓存

随着工具使用时间越多,这个文件夹会愈来愈大。若是用户目录和系统盘在一个分区,那系统盘分区可用空间就会变小,C盘盘符一直是告警状态,真心受不了,并且系统重装时,这个目录还会被删除。ide

因而咱们须要将此目录修改到其余分区,修改很简单,以下:工具

在IDEA安装目录的bin文件夹中找到idea.properties文件,咱们须要修改里面的几项内容this

下面是修改的结果,把${idea.xxx.path}所有改为本身的目录,改完以后重启,IDEA会提示你导入以前的配置,这时候须要你选择${user.home}.IntelliJIdea.config目录。。。另外要把插件目录也复制过来,不然以前下的插件所有都没有了idea

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.config.path=F:/data/JetBrains/idea/.IntelliJIdea/configspa

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.system.path=F:/data/JetBrains/idea/.IntelliJIdea/system插件

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.plugins.path=F:/data/JetBrains/idea/pluginsio

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.log.path=F:/data/JetBrains/idea/log配置

相关文章
相关标签/搜索