【问题标题】:How to change the indentation of compose如何更改compose的缩进
【发布时间】:2020-10-23 02:24:52
【问题描述】:

缩进由4变为8,如何转换回4?

@Composable
fun <T> ListContent(
    modifier: Modifier = Modifier  // The indentation I'd like to.
)

@Composable
fun <T> ListContent(
        modifier: Modifier = Modifier  // But the indentation actually I get.
)

【问题讨论】:

    标签: android android-jetpack-compose android-studio-4.2


    【解决方案1】:

    设置 kotlin 的代码风格后,一切正常。 (首选项 -> 代码样式 -> Kotlin -> 继续缩进 -> 4)

    【讨论】:

      猜你喜欢
      • 2012-11-18
      • 1970-01-01
      • 1970-01-01
      • 2016-03-14
      • 1970-01-01
      • 1970-01-01
      • 2021-01-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多