android-studioinstallation

How to save and restore Android Studio user interface settings?


Android Studio allows the user to customize certain features, such as editor settings and coding styles. On Windows boxes, the default folder for these settings appears to be C:\Users\{username}\.AndroidStudio{version}\config. I'm looking for documentation for these files so that we can decide which files should be under version control.

The goals are: 1) to have consistent UI settings for a group of developers; and 2) to have an easy way to configure a new Android Studio install.

So far, the following files look interesting:


...\config\templates\user.xml               User-defined code templates
...\config\options\editor.codeinsight.xml   Editor settings & code insight
...\config\options\editor.xml               Editor settings
...\config\options\cachedDictionary.xml     User additions to spelling dictionary.
...\config\codestyles\Default_1_.xml        Code formatting


Solution

  • It seems that the user interface has changed since the last answer.

    Now as of Android Studio 4.2 Bata 1 on Windows You have to go to File -> Manage IDE Settings -> Export Setting to see the same window.

    If you can't find the File > Import Settings menu, try accessing File -> Manage IDE Settings -> Export Setting.

    ScreenShat

    There may be differences on the version or operating system.