如何保存和还原Android Studio用户界面设置? [英] How to save and restore Android Studio user interface settings?

查看:547
本文介绍了如何保存和还原Android Studio用户界面设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android Studio允许用户自定义某些功能,例如编辑器设置和编码样式.在Windows框中,这些设置的默认文件夹似乎是C:\ Users \ {用户名} \.AndroidStudio {version} \ config.我正在寻找这些文件的文档,以便我们可以确定哪些文件应受版本控制.

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.

目标是:1)为一组开发人员具有一致的UI设置;和2)提供一种简单的方法来配置新的Android Studio安装.

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

推荐答案

您可以进行file > Export settings,然后您可以完全选择要导出的设置,并获得一个settings.jar文件.

You can go file > Export settings then you get to choose exactly the settings to export and you get a single settings.jar file.

相反的过程是file > Import Settings > choose settings.jar

这篇关于如何保存和还原Android Studio用户界面设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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