您是否知道IDEA提供了两种在IDE的多个实例之间同步设置的方法?您可以在多台计算机上工作或在团队中共享统一设置时使用它。
![](https://habrastorage.org/webt/eh/7a/ke/eh7akeygvrrz3w1dvyftiryu3me.png)
此翻译是IntelliJ IDEA系列的继续:
同步的重要性
, , IDE. . , , . IDE , .
, , , . . IDE . , .
— (Settings Repositories). , Git . IDEA . , , . , , Git. , . , , , Pull Requests ( ) .
, :
File → Settings Repository
URL git . . , , , , .
![](https://habrastorage.org/webt/y1/qu/tj/y1qutjyn2vsikzl4xhej3xeihfq.png)
, . . , IDEA — . ? , , , , . , , , . .
IDEA . . — . . , .
:
Settings → Tools → Settings Repository
, . :
![](https://habrastorage.org/webt/xf/bz/6y/xfbz6yrehgykf0bsgels9zh6tsi.png)
, VCS → Sync Settings.
JetBrains
IDE ( ), IDEA 2017.3. JetBrains .
, . , Git IDE. , , . , ?
, , , JetBrains. , . JetBrains, IDEA, . Help → Register. Activate new License with JetBrains Account . Activate.
![](https://habrastorage.org/webt/wk/wa/zq/wkwazq4nm4pyzbbnq8t6bnhoq7g.png)
IDE JetBrains, :
![](https://habrastorage.org/webt/jd/y_/h_/jdy_h_z7erauxblt0q1hnhqohhg.png)
, JetBrains , Gears, :
![](https://habrastorage.org/webt/sv/03/yn/sv03ynqtqzgwcqsyjo4nxuwxuge.png)
, :
![](https://habrastorage.org/webt/va/8v/e1/va8ve1rzkuq__nudga_nys2lgbc.png)
, . JetBrains, .
![](https://habrastorage.org/webt/ua/u2/cy/uau2cydeovuxyjd2cqhwumanehg.png)
. .
![](https://habrastorage.org/webt/qj/io/id/qjioidxehqth6t1qhobyppeatx8.png)
, , . , , IDEA.
![](https://habrastorage.org/webt/he/na/rg/henargs2-hf1c_oevxwzor-do9s.png)
, , IDE, , .
![](https://habrastorage.org/webt/qg/i1/3a/qgi13aldfx9x4duhyxxth01f4ps.png)
EditorConfig
2019.2, IDEA EditorConfig. EditorConfig, IDEA .
IDE, , IDEA . , .
IDE — . IntelliJ IDEA .
. , . , . , , .
第二个使用您的JetBrains帐户存储您的设置。因此,它更适合于您的个人设置,因为您无法与同事共享您的JetBrains帐户。另一方面,它可以控制插件的同步。
无论如何,保持一致的设置并备份到远程存储库很有用。