IntelliJ IDEA修改系统缓存目录

摘要:
IntelliJIDEA修改系统缓存目录的日志类别:IntelliJIDEA使用IntelliJIDEIDEA缓存读取更多内容。IntelliJIDEA将创建一个以开头的文件夹。IntelliJIdea首次启动时位于${user.home}目录下,用于存储IDEA的配置信息、插件和缓存信息。随着工具使用时间的延长,此文件夹将变大。如果用户目录和系统磁盘位于同一分区中,则系统磁盘分区的可用空间将变小。重新安装系统时,该目录也将被删除。

IntelliJ IDEA修改系统缓存目录

博客分类:
阅读更多

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

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

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

Properties代码 复制代码 收藏代码IntelliJ IDEA修改系统缓存目录第3张
  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. #---------------------------------------------------------------------  
  6. # Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.  
  7. #---------------------------------------------------------------------  
  8. #打开confi的配置  
  9. # idea.config.path=${user.home}/config  
  10.    
  11. #---------------------------------------------------------------------  
  12. # Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.  
  13. #---------------------------------------------------------------------  
  14. #打开system的配置  
  15. # idea.system.path=${user.home}/system  
  16.    
  17. #---------------------------------------------------------------------  
  18. # Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.  
  19. #---------------------------------------------------------------------  
  20. #打开plugins的配置  
  21. # idea.plugins.path=${idea.config.path}/plugins  
  22.    
  23. #---------------------------------------------------------------------  
  24. # Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.  
  25. #---------------------------------------------------------------------  
  26. #打开log的配置  
  27. # 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,如下是修改后的结果

Java代码 复制代码 收藏代码IntelliJ IDEA修改系统缓存目录第3张
  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. #---------------------------------------------------------------------  
  7. # Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.  
  8. #---------------------------------------------------------------------  
  9. 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修改系统缓存目录》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇numpy数组之读写文件Android内核驱动开发中的Kconfig文件结构分析(图文)下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

idea中找不到maven projects的集中解决办法

今天正常打开idea,却发现maven窗口找不到了:试了这些方法 首先idea自带了maven控件,不像Eclipse还需要下载控件,如果你以前有maven在右边,出于某种原因,消失找不到 了,你可以试试我写的方法。 方法1.你点击一下你idea界面最左下角的那个小框,maven应该从里面找到 方法2.点击菜单栏View->Tool Windows-...

用C#.Net实现AutoCAD块属性提取

 ____这是我以前写过的一篇文章,也是SmartSoft中用到的,作为SmartSoft专题的一部分转贴到这里,与大家共享。此类实现AutoCAD块属性提取功能,在VS.Net2003(2005)+AutoCAD2004(2007)下调试通过。   using System;using AutoCAD=Autodesk.AutoCAD.Interop...

(秒嘀)登录短信验证码开发 Demo

注意:前提你要在秒嘀注册:http://www.miaodiyun.com/doc/demo.html 配置类   package com.miaodiyun.httpApiDemo.common; public class Config {/*** url前半部分*/public static final String BASE_URL = "https:...

Pycharm Plugins 无法加载

IntelliJ IDEA 2020.1 插件中心一直打不开,鉴于有部分同学反馈设置http proxy不能解决,所以可按以下顺序检查 一、设置 http proxy—>勾上Auto-detect proxy setting,参照下图,加上地址 http://127.0.0.1:1080 或者 选择 File—>Setting—>Appe...

axios请求提交的form data格式 明明是JSON格式的参数却转成了字符串格式

问题:传的参数成为了字符数格式  解决:把参数的格式转换 const params = new URLSearchParams() params.append('USER_LOGIN', 'admin') params.append('PASS_WORD', '123456')...

IDEA中比较实用的几款插件

写在前面: 我是 扬帆向海,这个昵称来源于我的名字以及女朋友的名字。我热爱技术、热爱开源、热爱编程。技术是开源的、知识是共享的。 这博客是对自己学习的一点点总结及记录,如果您对 Java、算法 感兴趣,可以关注我的动态,我们一起学习。 用知识改变命运,让我们的家人过上更好的生活。 学习使用一些插件,可以提高平常工作中的开发效率。对于我们开发人员很有帮助...