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

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

问题描述

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

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

到目前为止,以下文件看起来很有趣:

<前><代码>...\config\templates\user.xml 用户定义的代码模板...\config\options\editor.codeinsight.xml 编辑器设置和代码洞察...\config\options\editor.xml 编辑器设置...\config\options\cachedDictionary.xml 用户对拼写词典的补充....\config\codestyles\Default_1_.xml 代码格式

解决方案

你可以去file >导出设置 然后你可以准确地选择要导出的设置,你会得到一个 settings.jar 文件.

相反的过程是file>导入设置 >选择 settings.jar

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

解决方案

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

The reverse process is file > Import Settings > choose settings.jar

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

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