简体   繁体   English

Android Studio 3.2:如何记住Android XML代码风格?

[英]Android Studio 3.2: How to remember Android XML code style?

I have to go to Preferences... > Editor > Code Style > XML to select Use custom formatting settings for Android XML files again and again everytime I create a new project. 我必须转到Preferences... > Editor > Code Style > XML以选择每次创建新项目时反复Use custom formatting settings for Android XML files

在此输入图像描述

I'm using Android Studio 3.2.1, macos 10.14. 我正在使用Android Studio 3.2.1,macos 10.14。

You can create you own codeStyle: 您可以创建自己的codeStyle: 在此输入图像描述

Just export your codeStyle to file and use in each project. 只需将codeStyle导出到文件并在每个项目中使用。 Or you can Copy to IDE... and it will remain in the IDE. 或者您可以Copy to IDE...它将保留在IDE中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM