在机器之间同步 Intellij IDEA 配置
config
目录是 IntelliJ IDEA 个性化化配置目录,或者说是整个 IDE 设置目录。这个目录主要记录了:IDE 主要配置功能、自定义的代码模板、自定义的文件模板、自定义的快捷键、Project 的 tasks 记录等等个性化的设置。
在
Help | Edit Custom Properties
中开启自定义的属性然后指定
# custom IntelliJ IDEA properties
idea.config.path=~/Dropbox/IntellijIdea2018/config/
idea.log.path=/tmp/IntellijIdea/
修改
idea.properties
属性文件中的 idea.config.path
值建议同步时只同步 conf 文件夹, system 中包含一些缓存会很大,这是我们本地的大小:
212M ./config
956M ./system
1.2G .
导入配置文件夹
在 File -> Settings Reposotory 中使用 git ropo 来同步文件,第一次选择 Overwrite Remote,然后 IDE 就会自动将设置push到远程仓库中。
Last modified 3yr ago