.IntelliJ IDEA 文件夹默认在C盘,缓存内容过大。修改.IntelliJ IDEA文件夹位置

IntelliJIdea  修改默认缓存的位置 

IntelliJIdea 默认缓存保存在C盘中,随着打开项目的增加,缓存文件夹(.intelliJidea)会越来越大,影响c盘速率。这是我们可以通过自定义缓存缓存文件夹的位置来解决这个问题,需要注意的是 缓存位置更换以后,如果不把原来缓存文件内存copy过去,那么久相当于重置了idea,之前所有的配置都将失效,需要重新配置。

缓存配置文件路径:IntelliJ IDEA 安装路径下\bin\idea.properties

# Use ${idea.home.path} macro to specify location relative to IDE installation home.
# Use ${xxx} where xxx is any Java property (including defined in previous lines of this file) to refer to its value.
# Note for Windows users: please make sure you're using forward slashes (e.g. c:/idea/system).
#设置根目录 这里根据第一行提供的名称配置,idea不同版本可能不一样,比如idea14版本应该是#idea.home没有path 
#下边1 2 3 4就是用来自定义idea各种缓存配置的路径的
idea.home.path = D:/opt/tmp/.IntelliJIdea14
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
#打开confi的配置 1
idea.config.path=${user.home}/config

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
#打开system的配置 2
idea.system.path=${user.home}/system

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
#打开plugins的配置 3
idea.plugins.path=${idea.config.path}/plugins

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
#打开log的配置 4
idea.log.path=${idea.system.path}/log
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值