修改 IntelliJ IDEA 默認配置路徑

IDEA 默認會在用戶文件夾建立配置目錄,這樣就會佔據C盤很大的空間ide

例如個人是2018.3版本的:idea

遷移 {用戶目錄}/.IntelliJIdea2018.1 文件夾到 D:/Java/JetBrains/.IntelliJIdea2018.1
修改 {IDEA目錄}/bin/idea.properties 文件的內容以下:code

idea.config.path=D:/Java/JetBrains/.IntelliJIdea2018.3/config
 idea.system.path=D:/Java/JetBrains/.IntelliJIdea2018.3/system
 idea.plugins.path=${idea.config.path}/plugins
 idea.log.path=${idea.system.path}/log


IDEA目錄能夠從這裏打開:

blog

重啓搞定get

參考資料:io

Changing IDE default directories used for config, plugins, and caches storage
Default IDE configuration directorysed

相關文章
相關標籤/搜索