idea 默认路径修改从C盘更改到D盘
本文介绍如何将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 默认路径修改内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!
相关文章
如何在java 8 stream表达式实现if/else逻辑
这篇文章主要介绍了如何在java 8 stream表达式实现if/else逻辑,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下2020-04-04
Spring Boot项目@RestController使用重定向redirect方式
这篇文章主要介绍了Spring Boot项目@RestController使用重定向redirect方式,具有很好的参考价值,希望对大家有所帮助。如有错误或未考虑完全的地方,望不吝赐教2021-09-09
Spring Boot自动装配、启动流程、配置优先级问题记录
Spring Boot通过@EnableAutoConfiguration注解和条件注解,实现自动装配功能,但并非全自动,而是有条件,启动流程包括初始化SpringApplication实例和执行run()方法,本文介绍Spring Boot自动装配、启动流程、配置优先级问题记录,感兴趣的朋友跟随小编一起看看吧2025-12-12
restemplate请求乱码之content-encoding=“gzip“示例详解
RestTemplate从Spring3.0开始支持的一个HTTP请求工具,它提供了常见的REST请求方案的模板,及一些通用的请求执行方法 exchange 以及 execute,接下来通过本文给大家介绍restemplate请求乱码之content-encoding=“gzip“,需要的朋友可以参考下2024-03-03


最新评论