【问题标题】:Build.gradle Formatting: How to stop colon alignment?Build.gradle Formatting:如何停止冒号对齐?
【发布时间】:2018-09-03 23:38:36
【问题描述】:

我目前正在与 build.gradle 中的 groovy 自动格式化程序作斗争。有谁知道我应该调整哪些设置以达到我想要的格式?我想防止冒号对齐。

// Current Format
ext.versions = ['supportLibrary': '27.1.0',
                'kotlin'        : '1.2.31',
                'dagger'        : '2.15',]

// Desired Format
ext.versions = ['supportLibrary': '27.1.0',
                'kotlin': '1.2.31',
                'dagger': '2.15',]

【问题讨论】:

标签: android android-studio build.gradle code-formatting


【解决方案1】:

在 Code Style > Groovy > Wrapping 中取消选中此项:

【讨论】:

    猜你喜欢
    • 2013-07-05
    • 1970-01-01
    • 2022-09-25
    • 2021-12-09
    • 2016-03-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多