android-studio - 我可以在 Android Studio 中创建自定义重新格式化代码吗
问题描述
我可以创建自定义重新格式化代码吗?
当我在主题文件中按 Ctrl + Alt + L 时,结果将是这样的
<resources>
<style name="Theme.Test" parent="Theme.AppCompat.Light">
<item name="colorPrimary">@color/purple_500</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/white</item>
</style>
</resources>
我想要这样的
<resources>
<style name="Theme.Test" parent="Theme.AppCompat.Light">
<item name="colorPrimary">@color/purple_500</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/white</item>
</style>
</resources>
有可能这样做吗?
解决方案
推荐阅读
- cython - 如何通过 cython 提供对 cpp 对象的绑定?
- php - Laravel 加入购物车问题
- python - Microsoft Teams:向用户发布直接消息以响应频道中的消息
- python - 如何使用 str.contains 函数使用行的索引替换单元格值
- python - 如何使用 .schema 显示 Django 创建的表?
- javascript - 循环通过自定义反应组件并向它们添加类名
- c# - Blazor Server 应用 + 外部登录 Facebook:用户名已被占用
- javascript - 类构造函数没有被调用
- javascript - 当主体更改为 DOM 元素时,循环无法正常工作
- python - Python enumerate 没有绘制正确的 matplotlib 数字?