IDEA,更改缓存和插件目录

Jetbrains家的IDEA,更改缓存和插件目录

一、首先了解下默认存储的位置

Win10的话,IDEA可能在这里:

C:\Users\用户名\AppData\Roaming\JetBrains。

在这个目录里面深度浏览,应该能够看到有一个文件夹下存储了config以及system文件夹,这里便存储了插件、IDE配置等内容。
————————————————

而后退出idea,先在某个地方新建文件夹,将configsystem目录剪切进去(本文新建 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

#---------------------------------------------------------------------

总结

提示: 目录分隔符为/正斜杠

  • 5
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值