https://kotlinlang.org logo
#ktlint
Title
# ktlint
p

Paul Dingemans

10/18/2023, 8:18 AM
If you dislike this indent style then you can refer to get more background about why it is done, and why some developers dislike it https://github.com/pinterest/ktlint/issues/2138. See See https://pinterest.github.io/ktlint/1.0.1/rules/code-styles/ for different code styles. If you do not dislike this coding style and want to keep using it, you can do following: • Use git pre-commit hook to apply ktlint format (https://pinterest.github.io/ktlint/1.0.1/install/cli/#git-hooks) • Apply ktlint during build proces • Use
ktlint (unofficial)
IDEA plugin, which can apply ktlint formatting whenever you invoke reformat manually.
🙌 1
3 Views