修改 IntelliJ IDEA 默认配置路径

修改 IntelliJ IDEA 默认配置路径

IDEA 默认会在用户文件夹创建配置目录,这样就会占据C盘很大的空间

例如我的是2018.3版本的:

迁移 {用户目录}/.IntelliJIdea2018.1 文件夹到 D:/Java/JetBrains/.IntelliJIdea2018.1
修改 {IDEA目录}/bin/idea.properties 文件的内容如下:

 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

1267816-20190314094234674-2058108365.png
1267816-20190314094419540-620095875.png

IDEA目录可以从这里打开:
1267816-20190314094304836-651153555.png
1267816-20190314094324022-243608867.png

重启搞定

参考资料:

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

posted @ 2019-03-14 09:46 LiHaoran175318 阅读( ...) 评论( ...) 编辑 收藏

猜你喜欢

转载自blog.csdn.net/qq_41839103/article/details/88849451