k

ktfmt

JetBrains

2841fa9b-3f08-4197-a9ce-ae7bd86ca5ae · v—

ktfmt is a program that reformats Kotlin source code to comply with the common community standard for Kotlin code conventions.

Formatting
Open in store ↗ id: 14912
Downloads
117K
116 565
Rating
4.1 ★
4 ratings
Category
JetBrains Marketplace
Collected
2026-11-04
weekly snapshot

Rating distribution

4.1 ★ 4 ratings
5★ 100.0%

Reviews 2

★★★★★ Christian Helmbold 2022-09-15

The formatter built into IntelliJ ignores the maximum line length, unnecessarily "explodes" nested structures, or makes other strange things. But the worst thing is that the the result depends partly on the formatting of the input file. Another disadvantage of the IntelliJ formatter is that it can not be integrated into the build process easily. This plugin and the corresponding Gradle plugin...

★★★★★ Steven Grimm 2021-02-22

If you've used IntelliJ's built-in Kotlin code formatter and been frustrated that you still have to manually clean up formatting all the time to get your code to follow a consistent style, this tool may be your new best friend. It is the Kotlin equivalent of google-java-format or Prettier or Black: an opinionated code formatter that comprehensively formats everything. It doesn't break long...

Similar in “Formatting”