默認(rèn)IntelliJ IDEA產(chǎn)生在C盤文件 的位置
IDEA 修改配置文件的位置:
你安裝軟件bin的同級目錄下:
eg:

````
# 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)
.#--------------------------------------------------------------------
-# 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}/.IdeaIC/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}/.IdeaIC/system
````
Configuration directory
````
Syntax%APPDATA%JetBrains
ExampleC:UsersJohnSAppDataRoamingJetBrainsIntelliJIdea2022.1
````
您可以使用IDEA .config.path屬性更改IntelliJ IDEA配置目錄的位置。
System directory
````
Syntax%LOCALAPPDATA%JetBrains
ExampleC:UsersJohnSAppDataLocalJetBrainsIntelliJIdea2022.1
````
您可以使用IDEA .system.path屬性更改IntelliJ IDEA系統(tǒng)目錄的位置。
一般這個目錄文件比較大,所以修改這個文件則可以
修改后:

這樣就可以把原來默認(rèn)目錄下的文件刪除掉,減少C盤的空間
具體請查看官網(wǎng)文檔:
https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#plugins-directory