背景:由于工作和学习的原因,在不同电脑之间都安装了Idea 或是更换了系统,麻烦的是这对Idea 又要重新设置一遍,所谓
工欲善其事必先利其器,可以将Idea的设置配置到第三方托管品台,例如:gitee.com 或者github.com等
官方的文档说明:https://www.jetbrains.com/help/idea/sharing-your-ide-settings.html#settings-repository
设置见下图:二者都可以
- 首先在三方托管平台上新建一个仓库,并记下仓库地址
- 打开File-->Setting Repository
- 其中 `Upstream URL`即为刚刚的三方托管平台地址
- 输入之后,点击Overwrite Remote 即可上传本地IDEA SETTING 到仓库地址
- On each computer where you want your settings to be applied, select File | Settings Repository from the main menu. Specify the URL of the repository you've created, and click Overwrite Local.
You can click Merge if you want the repository to keep a combination of the remote settings and your local settings. If any conflicts are detected, a dialog will be displayed where you can resolve these conflicts.
If you want to overwrite the remote settings with your local settings, clickOverwrite Remote
- 关闭手动同步