Skip to content

nbtCompoundColonSpacing

SPGoding edited this page Apr 26, 2020 · 1 revision

Rule Details

🎨 Stylistic: this is a stylistic rule used by the formatting feature.

Enforce spacing around colons in NBT compounds.

  • (object) Root.
    • before: (number) the number of spaces before the colon.
    • after: (number) the number of spaces after the colon.

Examples

Default

{
    "nbtCompoundColonSpacing": { "before": 0, "after": 1 }
}

👍 Good

summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b}

👎 Bad

summon minecraft:armor_stand ~ ~ ~ {Invisible:1b}
summon minecraft:armor_stand ~ ~ ~ {Invisible : 1b}

Dense

{
    "nbtCompoundColonSpacing": { "before": 0, "after": 0 }
}

👍 Good

summon minecraft:armor_stand ~ ~ ~ {Invisible:1b}

👎 Bad

summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b}
summon minecraft:armor_stand ~ ~ ~ {Invisible : 1b}

History

This rule was introduced in DHP 2.0.0.

Clone this wiki locally