I would like the auto-formatter to help me keep th...
# getting-started
p
I would like the auto-formatter to help me keep the columns aligned 🤔
d
I would use formatter directives
//@formatter:off
//@formatter:on
p
that would def work but then I would have to do the alignment manually
d
🤷🏻 Formatter can't do it all. Maybe they could add similar directives where you can make it use a different formatter
p
yeah.. i know there is nothing you can do about it in java but kotlin can do pretty wicked stuff using extension function and lambda syntax, see this https://github.com/Kotlin/kotlinx.html
maybe i should just store it in database
d
But none of that can be used to
format
code in a table style. You can make a DSL like
Copy code
table {
columns("name", "age")
row {
    column["name"] = "poohbar"
}
}