IntelliJ IDEA 2022 自定义配置及系统文件 window

1,030 阅读1分钟

默认IntelliJ IDEA产生在C盘文件 的位置

IDEA 修改配置文件的位置:

你安装软件bin的同级目录下:

eg:

IntelliJ IDEA 2022 自定义配置及系统文件 window

# 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<product><version>
Example

C:\Users\JohnS\AppData\Roaming\JetBrains\IntelliJIdea2022.1

您可以使用IDEA .config.path属性更改IntelliJ IDEA配置目录的位置。

System directory

Syntax
%LOCALAPPDATA%\JetBrains<product><version>
Example
C:\Users\JohnS\AppData\Local\JetBrains\IntelliJIdea2022.1

您可以使用IDEA .system.path属性更改IntelliJ IDEA系统目录的位置。

一般这个目录文件比较大,所以修改这个文件则可以

修改后:

IntelliJ IDEA 2022 自定义配置及系统文件 window

这样就可以把原来默认目录下的文件删除掉,减少C盘的空间

具体请查看官网文档:

www.jetbrains.com/help/idea/d…