如何正确更新IntelliJ,以便保留设置? [英] How to update IntelliJ properly, so that settings are kept?

查看:2017
本文介绍了如何正确更新IntelliJ,以便保留设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每隔一段时间,"IntelliJ IDEA准备更新.".在这些情况下,有时需要卸载当前版本并安装新版本.发生这种情况时,安装程​​序会询问是否以静默方式卸载以前的版本:以静默方式卸载(不会删除旧版本中的设置和配置)".

Every once in a while, "IntelliJ IDEA is ready to update.". In these cases, it is sometimes required to uninstall the current version and to install the new version. When that happens, the installer asks whether to uninstall the previous version silently: "Uninstall silently (settings and configuration from old versions will not be deleted)".

这对我来说是模棱两可的. 静默卸载"是否意味着我的设置副本将使我的文件系统混乱,还是意味着这些设置将被移植到新版本?问另一种方法:如果我不选中以静默方式卸载"框,是否需要从头开始重新配置IntelliJ?

This to me is ambiguous. Does "uninstall silently" mean that a copy of my settings will be cluttering my file system, or does it mean that the settings will be ported to the new version? Asked the other way around: if I don't check the "uninstall silently" box, will I have to reconfigure IntelliJ from scratch?

我想让更新对我的设置的更改尽可能少.因此,我想将所有设置和插件都保留在更新的版本中.但是我不希望磁盘上的旧配置文件和插件文件乱堆".我是否应该选中静默卸载"框?

I would like to have the update change as little as possible to my settings. So I would like to keep all the settings and plugins in the updaded version. But I don't want old bits of configuration and plugin files "lying around" on my disk. Should I check the "uninstall silently" box?

推荐答案

默认情况下,所有IntelliJ设置都存储在特定于版本的文件夹中,该文件夹位于主目录中.如果您选择(不会删除旧版本中的设置和配置)"选项,那么您的设置不会被删除(显然).

All IntelliJ settings are stored in a version-specific folder that is located in home directory by default. If you choose "(settings and configuration from old versions will not be deleted)" option than your settings are not deleted (obviously).

  • 如果您随后安装相同版本或升级到IntelliJ IDEA的次要版本,则这些设置将被重复使用.
  • 如果要升级到另一个主要版本,则(在安装过程中)将扫描主目录,并且将询问您是否要重复使用IntelliJ IDEA先前版本中的现有设置.如果您同意,则迁移设置(复制到特定于新版本的目录).
  • 我没有试图降级. =)这可能是一个有趣的实验,如果需要,请尝试自己进行.

如果不删除这些设置,则经过几次升级后主目录可能看起来像这样:

If you don't delete these settings, your home directory may look like this after a few upgrades:

user home/  
├── .IntelliJIdea2017.2  
├── .IntelliJIdea2017.3  
└── .IntelliJIdea2018.1  


您可能会发现它很有趣:


You may find it interesting:

  • Directories used by the IDE to store settings, caches, plugins, and logs - JetBrains
  • Sharing Your IDE Settings
  • Since IntelliJ IDEA 2017.3: Better Synchronization of your Settings Across Devices

这篇关于如何正确更新IntelliJ,以便保留设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆