IntelliJ IDEA修改系统缓存目录

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

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

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

 

# 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.pathidea.system.path里面的${user.home}改成将要存放目录的位置,我这里修改为D:/Program/JetBrains,如下是修改后的结果

 

 

#---------------------------------------------------------------------
# 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工具就可以了。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
IntelliJ IDEA是一款流行的Java集成开发环境(IDE),如果你想要在Windows系统上完全卸载并清理IntelliJ IDEA,可以按照以下步骤进行: 1. **卸载程序**: - 打开“控制面板”(可以通过搜索栏找到)。 - 选择“程序”或“应用和功能”(取决于你的Windows版本)。 - 搜索“IntelliJ IDEA”,找到对应的安装项,右键点击并选择“卸载”。 2. **删除应用程序文件**: - 找到IntelliJ IDEA的安装目录,通常位于`C:\Program Files (x86)\JetBrains\IntelliJ IDEA` 或类似路径。 - 使用文件资源管理器删除该文件夹及其所有内容。 3. **移除环境变量**: - 打开“系统属性”(按Win + X,然后选择“系统”)。 - 转到“高级系统设置”,点击“环境变量”按钮。 - 在系统变量或用户变量中查找与IntelliJ IDEA相关的路径,如`JAVA_HOME`、`INTellij IDEA_HOME`等,将它们从列表中删除。 4. **清理注册表**: - 右键点击“计算机”图标,选择“管理”>“注册表编辑器”(`regedit`)。 - 在注册表中使用搜索功能查找与IntelliJ IDEA相关的键,如`HKEY_LOCAL_MACHINE\Software\JetBrains`,删除或重命名这些键。 - 提醒:注册表编辑器操作需谨慎,不当修改可能导致系统不稳定,请确保你知道自己在做什么。 5. **清理缓存和日志**: - 如果能找到IntelliJ IDEA缓存目录(通常在`%APPDATA%\IntelliJ IDEA`),删除其中的`system`、`idea.log` 和其他临时文件。 完成上述步骤后,你应该已经成功地清除了IntelliJ IDEA在Windows上的大部分痕迹。但请注意,某些配置信息可能仍然保存在系统级,如果非常关心隐私,可能需要检查和清除这部分残留。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值