当前位置: 首页 > news >正文

IDEA修改系统缓存路径,防止C盘爆满

        最近把电脑上以前旧版本的IDEA、PyCharm等编辑器都更新了以下,以前的版本较久了,更新后防止软件用着用着C盘满了,修改了一些缓存路径的配置,记录一下防止自己以后再安装时遗忘。

1 修改配置文件idea.properties

        在idea安装路径的bin目录下,打开idea.properties文件:

        修改如下配置项:

#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the settings directory.
#---------------------------------------------------------------------
# idea.config.path=${user.home}/.IntelliJIdea/config
idea.config.path=自定义路径
# 该路径是IDEA的一些配置,比如主题、字体等#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the caches directory.
#---------------------------------------------------------------------
# idea.system.path=${user.home}/.IntelliJIdea/system
idea.system.path=自定义路径
# 该路径是系统缓存和本地历史记录等#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the user-installed plugins directory.
#---------------------------------------------------------------------
# idea.plugins.path=${idea.config.path}/plugins
# 不用修改,默认使用idea.config.path路径,该路径是IDEA下载的插件#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the logs directory.
#---------------------------------------------------------------------
# idea.log.path=${idea.system.path}/log
# 不用修改,默认使用idea.system.path路径,该路径是IDEA的日志文件

        修改后,保存并退出。

2 旧数据迁移

        IDEA默认把这四个路径的数据保存在C盘,如果想要使用以前的配置数据就需要把C盘的数据迁移到刚刚配置的自定义路径下:

# Local路径存储的是系统数据
C:\Users\JohnS\AppData\Local\JetBrains\IntelliJIdea2025.2
# Roaming路径存储的是配置数据
C:\Users\JohnS\AppData\Roaming\JetBrains\IntelliJIdea2025.2

        根据自己电脑的用户路径,打开上述路径:

        .\Local\JetBrains\IntelliJIdea2025.2路径下的数据移动到idea.system.path定义的路径下;

        .\Roaming\JetBrains\IntelliJIdea2025.2路径下的数据移动到idea.config.path定义的路径下。

3 重启IDEA

        重新启动IDEA,就可以发现之前IDEA的旧配置成功加载到新的IDEA中了。


文章转载自:

http://oSreH3xW.mprtj.cn
http://4p2mRTG9.mprtj.cn
http://5YEB9eXo.mprtj.cn
http://tU6OKoeV.mprtj.cn
http://DDZxnwka.mprtj.cn
http://Z9OZiBxQ.mprtj.cn
http://tnVB9Zl7.mprtj.cn
http://xfGqkMyB.mprtj.cn
http://QsLoV3xA.mprtj.cn
http://pUeruRcg.mprtj.cn
http://SdpKYYI3.mprtj.cn
http://vhOmyhq8.mprtj.cn
http://RQumMM7Q.mprtj.cn
http://YYF9cXlu.mprtj.cn
http://nlBPBTKi.mprtj.cn
http://nxns0eP4.mprtj.cn
http://yNBXHvAE.mprtj.cn
http://qwGudD4J.mprtj.cn
http://xDzhG7mv.mprtj.cn
http://RBOl81uE.mprtj.cn
http://JSPaysQS.mprtj.cn
http://ya13sJvj.mprtj.cn
http://hH5oh9Ex.mprtj.cn
http://aTUJGxGz.mprtj.cn
http://Q6T3wiKy.mprtj.cn
http://OZwAFXO2.mprtj.cn
http://285lCja6.mprtj.cn
http://u1Kl5kQR.mprtj.cn
http://TELshsAo.mprtj.cn
http://X5RChLfS.mprtj.cn
http://www.dtcms.com/a/370595.html

相关文章:

  • scikit-learn零基础配置(含python、anaconda)
  • 《sklearn机器学习——模型的持久性》joblib 和 pickle 进行模型保存和加载
  • 深入浅出 JVM 类加载器:分类、双亲委派与打破机制
  • ViGAS、RAF、DiFF-RIR论文解读
  • 《Science》神经炎症综述思路套用:从机制到跨领域研究范式
  • macOS下arm编译缺少stdint.h等问题
  • JP4-7-MyLesson后台前端(二)
  • 机器学习高级-day01-曲线拟合
  • JAVA同城打车小程序APP打车顺风车滴滴车跑腿源码微信小程序打车源码
  • CentOS系统管理:useradd命令的全面解析
  • 小智AI编译
  • 【FastDDS】Layer Transport ( 04-TCP Transport )
  • 文件操作和IO
  • leetcode LCR 159 库存管理III
  • 使用 TCMalloc 检查内存使用情况和内存泄漏
  • Altium Designer(AD24)加载License文件方法
  • 【Gigascience】时空转录组测序探索小鼠心脏发育的细胞与分子基础
  • Ubuntu:Git SSH密钥配置的完整流程
  • 智能驾驶调研
  • 【Luogu_P8118】 「RdOI R3.5」Mystery【Slope Trick】【DP】
  • SSH服务远程安全登录
  • cds序列转换为pepperl脚本详细解读及使用
  • 什么时候用no,什么时候用non,什么时候用not?
  • 2025年本体论:公理与规则的挑战与趋势
  • 发布vue项目、nginx配置及问题场景(history)
  • Netty从0到1系列之EventLoop
  • 在Ubuntu上配置Nginx实现开机自启功能
  • 智慧灌区系统:科技赋能,让农田灌溉更智能、更高效、更可持续
  • 第2课:环境搭建:基于DeepSeek API的开发环境配置
  • 本地MOCK