Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ - Import configuration from old version after first run

I recently installed version 2017.2 of IntelliJ IDEA. I would like to keep my settings from my old 2017.1 version. IntelliJ's support site shows the following dialog box that is supposed to show up when you run the newly installed version for the first time.

Complete Installation Dialog

However, neither when I was installing the new version, nor when I ran the new version for the first time, was I ever shown this dialog box. I attempted to import settings from my old version via the File | Import Settings menu option, but it expects a .jar file that would have been exported from an old version by going to File | Export Settings, which I did not do in the old version before installing the new one.

I do still have all of the config from my old version in %MY_HOME_DIR%/.IntelliJIdea2017.1. How can I import those settings in the same way that the above dialog box would have done had it shown up when I opened the new version for the first time?

like image 329
Andrew Mairose Avatar asked Jul 20 '17 16:07

Andrew Mairose


People also ask

How do I import a configuration file into IntelliJ?

Call File | Manage IDE Settings | Import Settings from the main menu. Select the ZIP archive that contains your settings in the dialog that opens. Select the settings you want to apply in the Select Components to Import dialog that opens and click OK.

How do I copy IntelliJ configuration?

Choose File | Manage IDE Settings | Export Settings from the main menu. In the Export Settings dialog that opens specify the settings to export by selecting the checkboxes next to them.

How do I restore IntelliJ settings?

From the main menu, select File | Manage IDE Settings | Restore Default Settings. Alternatively, press Shift twice and type Restore default settings . Click Restore and Restart.

How do I import an existing project into IntelliJ?

Launch IntelliJ IDEA. If the Welcome screen opens, press Ctrl+Shift+A , type project from existing sources , and click the Import project from existing sources action in the popup. Otherwise, from the main menu, select File | New | Project from Existing Sources.


2 Answers

Starting with IntelliJ IDEA 2020.1 the settings are imported automatically from the most recently used previous version and the dialog is not shown.

To start with the default settings you can use File | Manage IDE Settings | Restore Default Settings.

Also note that default folders used by the IDE have also changed since 2020.1 release.


Original answer for older versions:

This dialog is displayed only when there is no existing directory for IDE configuration of this version.

In your case there is probably %MY_HOME_DIR%/.IntelliJIdea2017.2 directory already created if you were using EAP or RC builds before.

Removing IDE configuration directory will display this dialog again on the next start.

like image 166
CrazyCoder Avatar answered Sep 22 '22 21:09

CrazyCoder


As of version 2020.1, Jetbrains has changed the directory where preferences are stored.

  • For Windows %\APPDATA%\JetBrains\<product><version>
  • For OSX: ~/Library/Application Support/JetBrains/<product><version>.
  • For Linux ~/.config/JetBrains/<product><version>

See https://www.jetbrains.com/help/idea/2020.1/tuning-the-ide.html#default-dirs

like image 37
Samuel Avatar answered Sep 19 '22 21:09

Samuel