本文介绍如何将idea的配置文件从默认的C盘调整到D盘,从而节省C盘使用空间。 默认存放位置 idea配置文件默认存放位置(XXX为用户名): 用户配置:C:\Users\XXX\AppData\Local\JetBrains 系统
本文介绍如何将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/configidea.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/systemidea.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}/pluginsidea.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}/logidea.log.path=${idea.system.path}/log
修改配置文件后,重新启动idea,会弹框提示是否导入原配置文件,选导入就会把原配置文件复制到新的配置路径下。确认没有问题后就可以将原配置文件删除了以节省C盘空间。
来源地址:https://blog.csdn.net/sg_knight/article/details/129013857
--结束END--
本文标题: 如何修改idea配置文件位置从C盘更改到D盘
本文链接: https://www.lsjlt.com/news/395618.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-04-03
2024-04-03
2024-04-01
2024-01-21
2024-01-21
2024-01-21
2024-01-21
2023-12-23
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0