详解如何修改idea配置文件位置从C盘更改到D盘
更新时间:2023年10月09日 09:47:16 作者:sg_knight
这篇文章主要给大家介绍了关于如何将idea的配置文件从默认的C盘调整到D盘,从而节省C盘使用空间,具有很好的参考价值,希望对大家有所帮助,需要的朋友可以参考下
默认存放位置
idea配置文件默认存放位置(XXX为用户名):
用户配置:C:\Users\XXX\AppData\Local\JetBrains
系统配置:C:\Users\XXX\AppData\Roaming\JetBrains
修改配置文件
打开idea安装目录下/bin/idea.properties文件。修改内容如下:
# Use ${idea.home.path} 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).
confighome=D:/Program Files/JetBrains/Config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.config.path=${user.home}/.IntelliJIdea/config
idea.config.path=${confighome}/.IntelliJIdea2021.1/config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.system.path=${user.home}/.IntelliJIdea/system
idea.system.path=${confighome}/.IntelliJIdea2021.1/system
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.plugins.path=${idea.config.path}/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.
#---------------------------------------------------------------------
# idea.log.path=${idea.system.path}/log
idea.log.path=${idea.system.path}/log
重启IDEA并导入原来的配置文件
修改配置文件后,重新启动idea,会弹框提示是否导入原配置文件,选导入就会把原配置文件复制到新的配置路径下。确认没有问题后就可以将原配置文件删除了以节省C盘空间。

以上就是详解如何修改idea配置文件位置从C盘更改到D盘的详细内容,更多关于修改idea配置文件位置的资料请关注脚本之家其它相关文章!
相关文章
详解Spring数据缓存注解@Cacheable、@CachePut、@CacheEvict
这篇文章主要介绍了详解Spring数据缓存注解@Cacheable、CachePut、@CacheEvict,当以一组参数第一次调用某个方法时,返回值会被保存在缓存中,如果这个方法再次以相同的参数进行调用时,这个返回值会从缓存中查询获取,需要的朋友可以参考下2023-07-07
解决Springboot项目报错:java:错误:不支持发行版本 17
这篇文章主要给大家介绍了关于解决Springboot项目报错:java:错误:不支持发行版本17的相关资料,这个错误意味着你的Spring Boot项目正在使用Java 17这个版本,但是你的项目中未配置正确的Java版本,需要的朋友可以参考下2023-08-08


最新评论