概述
IDEA 默认会在系统用户文件夹下创建配置目录,由于使用过程中此配置目录会越来越大,所以我们需要将配置目录指定到想要存放的位置。
编辑默认配置路径
- 编辑默认配置路径
编辑文件:{IDEA安装路径}/bin/idea.properties(本人将默认路径配置在IntelliJIdea的安装路径settings下,故做如下配置)
idea.config.path=../settings/.IntelliJIdea/config
idea.system.path=../settings/.IntelliJIdea/system
idea.plugins.path=${idea.config.path}/plugins
idea.log.path=${idea.system.path}/log
如图所示红色部分
- 配置完成后重新启动,配置即可生效!