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

以上就是詳解如何修改idea配置文件位置從C盤(pán)更改到D盤(pán)的詳細(xì)內(nèi)容,更多關(guān)于修改idea配置文件位置的資料請(qǐng)關(guān)注腳本之家其它相關(guān)文章!
相關(guān)文章
淺談常用字符串與集合類(lèi)轉(zhuǎn)換的工具類(lèi)
下面小編就為大家?guī)?lái)一篇淺談常用字符串與集合類(lèi)轉(zhuǎn)換的工具類(lèi)。小編覺(jué)得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2016-08-08
Mybatis?如何開(kāi)啟控制臺(tái)打印sql語(yǔ)句
這篇文章主要介紹了Mybatis?如何開(kāi)啟控制臺(tái)打印sql語(yǔ)句問(wèn)題,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2022-11-11
Java 數(shù)據(jù)庫(kù)連接池 DBCP 的介紹
這篇文章主要給大家分享的是 Java 數(shù)據(jù)庫(kù)連接池 DBCP 的介紹, 是 Apache 旗下 Commons 項(xiàng)目下的一個(gè)子項(xiàng)目,提供連接池功能DBCP,下面來(lái)看看文章的具體介紹內(nèi)容吧,需要的朋友可以參考一下2021-11-11

