詳解如何修改idea配置文件位置從C盤更改到D盤
默認(rèn)存放位置
idea配置文件默認(rèn)存放位置(XXX為用戶名):
用戶配置:C:\Users\XXX\AppData\Local\JetBrains
系統(tǒng)配置:C:\Users\XXX\AppData\Roaming\JetBrains
修改配置文件
打開idea安裝目錄下/bin/idea.properties文件。修改內(nèi)容如下:
# 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并導(dǎo)入原來的配置文件
修改配置文件后,重新啟動(dòng)idea,會(huì)彈框提示是否導(dǎo)入原配置文件,選導(dǎo)入就會(huì)把原配置文件復(fù)制到新的配置路徑下。確認(rèn)沒有問題后就可以將原配置文件刪除了以節(jié)省C盤空間。

以上就是詳解如何修改idea配置文件位置從C盤更改到D盤的詳細(xì)內(nèi)容,更多關(guān)于修改idea配置文件位置的資料請(qǐng)關(guān)注腳本之家其它相關(guān)文章!
相關(guān)文章
Java 數(shù)據(jù)庫(kù)連接池 DBCP 的介紹
這篇文章主要給大家分享的是 Java 數(shù)據(jù)庫(kù)連接池 DBCP 的介紹, 是 Apache 旗下 Commons 項(xiàng)目下的一個(gè)子項(xiàng)目,提供連接池功能DBCP,下面來看看文章的具體介紹內(nèi)容吧,需要的朋友可以參考一下2021-11-11

