How to update IntelliJ properly, so that settings are kept?

瘦欲@ 提交于 2019-12-11 01:57:15

问题


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)".

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?


回答1:


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).

  • If you then install the same version or make an upgrade to minor version of IntelliJ IDEA then these settings are going to be reused.
  • If you make an upgrade to another major version then (during installation) your home directory is scanned and you will be asked whether you want to reuse existing settings from a previous version of IntelliJ IDEA. The settings are migrated if you agree (copied to a new version-specific directory).
  • I haven't tried to make a downgrade. =) It may be an interesting experiment, try to conduct it yourself if you want.

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



回答2:


Use "JetBrains TOOLBOX". It is a easy way to manage your installed IDEs.

If you have updates it will indicate and you just one click away to install them



来源:https://stackoverflow.com/questions/49825710/how-to-update-intellij-properly-so-that-settings-are-kept

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!