Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is codeStyleConfig xml file in codeStyles of idea folder?

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>

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

like image 531
kimkevin Avatar asked May 31 '18 06:05

kimkevin


1 Answers

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.

Screenshot of how to change code style preferences

like image 89
Patrick Beagan Avatar answered Oct 12 '22 23:10

Patrick Beagan