阅读更多

intellij IDEA在第一次启动时,会在${user.home}目录下建立以.IntelliJIdea开头的文件夹,用来存放IDEA的配置信息、插件和缓存信息。随着工具使用时间越多,这个文件夹会越来越大。如果用户目录和系统盘在一个分区,那系统盘分区可用空间就会变小,系统重装时,这个目录还会被删除。

于是我们需要将此目录修改到其他分区,修改很简单,如下:

在IDEA安装目录的bin文件夹中找到idea.properties文件,我们需要里面的几项内容:

  1. # Use ${idea.home} macro to specify location relative to IDE installation home.
  2. # Use ${xxx} where xxx is any Java property (including defined in previous lines of this file) to refer to its value.
  3. # Note for Windows users: please make sure you're using forward slashes (e.g. c:/idea/system).
  4. #---------------------------------------------------------------------
  5. # Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
  6. #---------------------------------------------------------------------
  7. #打开confi的配置
  8. # idea.config.path=${user.home}/config
  9. #---------------------------------------------------------------------
  10. # Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
  11. #---------------------------------------------------------------------
  12. #打开system的配置
  13. # idea.system.path=${user.home}/system
  14. #---------------------------------------------------------------------
  15. # Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
  16. #---------------------------------------------------------------------
  17. #打开plugins的配置
  18. # idea.plugins.path=${idea.config.path}/plugins
  19. #---------------------------------------------------------------------
  20. # Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
  21. #---------------------------------------------------------------------
  22. #打开log的配置
  23. # idea.log.path=${idea.system.path}/log
# Use ${idea.home} 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). #---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
#打开confi的配置
# 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的配置
# 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的配置
# 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的配置
# idea.log.path=${idea.system.path}/log

将idea.config.path和idea.system.path里面的${user.home}改成将要存放目录的位置,我这里修改为D:/Program/JetBrains,如下是修改后的结果

  1. #---------------------------------------------------------------------
  2. # Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
  3. #---------------------------------------------------------------------
  4. idea.config.path=D:/Program/JetBrains/.IntelliJIdea/config
  5. #---------------------------------------------------------------------
  6. # Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
  7. #---------------------------------------------------------------------
  8. idea.system.path=D:/Program/JetBrains/.IntelliJIdea/system
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.config.path=D:/Program/JetBrains/.IntelliJIdea/config #---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.system.path=D:/Program/JetBrains/.IntelliJIdea/system

 注意:一定要将配置项前面的注释符(#)去掉,否则不生效。

接下来,重启IDEA工具就可以了。

IntelliJ IDEA修改系统缓存目录的更多相关文章

  1. mklink修改Chrome缓存目录

    管理员命令打开CMDmklink /D "C:\Users\Administrator\AppData\Local\Google\Chrome\User Data" "C ...

  2. 【转】如何修改Chrome缓存目录的地址

    本文转自:http://www.nowamagic.net/librarys/veda/detail/2573 C盘空间越来越小,在Win7里还标红了,心里看得不舒服,得想一些方法腾出一些空间.看了A ...

  3. windows2008系统缓存修改

    Windwos Server 2008 中经常有物理内存占用较高,但任务管理器中各进程的内存看起来占用并不多情况. 这可能是由于OS为保证服务器性能不限制系统缓存,服务器系统长时间执行I/O,系统文件 ...

  4. linux系统下修改文件夹目录权限

    linux系统下修改文件夹目录权限 文件夹权限问题 Linux.Fedora.Ubuntu修改文件.文件夹权限的方法差不多.很多人开始接触Linux时都很头痛Linux的文件权限问题.这里告诉大家如何 ...

  5. 如何修改phpstorm的缓存目录

    相信使用phpstorm的人们都被缓存目录的大小困扰过.怎么修改到其它地方呢? 1. 找到 idea.properties 文件,配置信息都在此文件中,F:\Program Files\JetBrai ...

  6. IntelliJ IDEA 修改缓存文件设置

    今天在查看C盘,发现虽然我idea安装在了D盘,但是idea的缓存还是在C盘 config 目录是 IntelliJ IDEA 个性化化配置目录,或者说是整个 IDE 设置目录.也是我个人认为最重要的 ...

  7. Linux修改系统以及pip更新源

    Linux修改系统以及pip更新源 时间:2015-08-01来源:csdn 作者:henulwj 修改系统更新源 你是否跟我一样在刚看时接触Linux时被系统更新源问题搞得晕头转向,不同的Linux ...

  8. C# ASP.NET系统缓存全解析

    原文:http://blog.csdn.net/wyxhd2008/article/details/8076105 目录(?)[-] 系统缓存的概述 页面输出缓存 页面局部缓存 文件缓存依赖 数据库缓 ...

  9. AppDir【创建缓存目录】

    版权声明:本文为HaiyuKing原创文章,转载请注明出处! 前言 创建缓存目录 public static String APP_CACHE = "";// /storage/e ...

  10. Intellij IDEA 修改jsp 不能实时更新

    Intellij IDEA 修改jsp 不能实时更新 1. 首先,output要指定到项目的webapp下,这样应该就可以实时更新了 2. 我的问题是这样设置之后,也不可以,原来是可以的,重装系统之后 ...

随机推荐

  1. ABAP PDF 打印

    SPAN { font-family: "Courier New"; font-size: 10pt; color: rgba(0, 0, 0, 1); background: r ...

  2. 【9】java之static关键字

    一. static 定义属性 static 定义的属性和非 static 定义的属性有一个最大区别:所有的非 static 属性必须产生实例化对象之后才可以访问,static 定义的属性不受此限制.也 ...

  3. 四种语言刷算法之47. 全排列 II

    47. 全排列 II 1.C /** * Return an array of arrays of size *returnSize. * The sizes of the arrays are re ...

  4. [网鼎杯2020]you_raise_me_up

    [网鼎杯2020]you_raise_me_up 目录 [网鼎杯2020]you_raise_me_up 题目 分析 解法一:sage discrete_log()使用示例 补充 解法二:python ...

  5. Git安装,配置、基本使用

    p.p1 { margin: 0; font: 12px ".PingFang SC" } p.p2 { margin: 0; text-align: justify; font: ...

  6. Mybatis的几种传参方式

    前言 单个参数 多个参数 使用索引[不推荐] 使用@Param 使用Map POJO[推荐] List传参 数组传参 总结 单个参数 单个参数的传参比较简单,可以是任意形式的,比如#{a}.#{b}或 ...

  7. python GIL解释器

    1.GIL是什么? GIL全称Global Interpreter Lock,即全局解释器锁. 作用就是,限制多线程同时执行,保证同一时间内只有一个线程在执行. GIL并不是Python的特性,它是在 ...

  8. 退役*CPCer的找实习总结

    从2月底开始到今天,我终于拿到了第一个也是唯一一个offer(字节跳动).找实习的过程告一段落,所以想记录一下这段时间的经历. 最开始找$meopass$学长内推了小马智行,很快就接到了面试通知(再次 ...

  9. jssip3.9.1的demo,webphone网页电话

    用的目前最新的3.9.1版本,全版本在这里: https://jssip.net/download/releases/ https://github.com/versatica/JsSIP 代码: & ...

  10. 编译报错Could NoT find Threads (missing: Threads FOUND)

    解决方法1: 原来的命令行加上-lpthread 解决方法2: -DCMAKE_THREAD_LIBS_INIT=-lpthread