idea文件夹的codeStyles中的codeStyleConfig xml文件是什么? [英] What is codeStyleConfig xml file in codeStyles of idea folder?

查看:87
本文介绍了idea文件夹的codeStyles中的codeStyleConfig xml文件是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Android Studio更新为 3.1.2 ,并且像这样自动在 .idea 文件夹中创建了 codeStyleConfig xml.

I updated my Android Studio as 3.1.2 and codeStyleConfig xml was created automatically in .idea folder like this.

<component name="ProjectCodeStyleConfiguration">
  <state>
    <option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
  </state>
</component>

我想知道 PREFERRED_PROJECT_CODE_STYLE 是什么,默认是什么意思.有没有人知道这件事?

I'm wondering what PREFERRED_PROJECT_CODE_STYLE is and Default means. Is there anyone to know about this?

推荐答案

在大型团队中工作时,您可以对该文件进行版本控制,并在偏好设置">编辑器">代码样式"中更改样式设置,以从该文件读取而不是从文件读取你骑.这样,每个人都可以共享样式设置,每个人都可以自动格式化,而不必担心与其他人的分支机构中的格式差异发生冲突.

When working in a large team, you can version control this file and change your style settings in Preferences > Editor > Code Style to read from that file instead of from your IDE. That way, everyone shares style settings and everyone can autoformat without having to worry about conflicting with formatting differences in other people's branches.

这篇关于idea文件夹的codeStyles中的codeStyleConfig xml文件是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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