Software Alternatives, Accelerators & Startups

ktfmt

A program that reformats Kotlin source code to comply with the common community standard for Kotlin code conventions. - facebookincubator/ktfmt.

ktfmt

ktfmt Reviews and Details

This page is designed to help you find out whether ktfmt is good and if it is the right choice for you.

Screenshots and images

  • ktfmt Landing page
    Landing page //
    2023-08-29

Badges

Promote ktfmt. You can add any of these badges on your website.

SaaSHub badge
Show embed code

Videos

Fragmented Podcast Episode #242: Kotlin Code Formatting with ktfmt and spotless

Social recommendations and mentions

We have tracked the following product recommendations or mentions on various public social media platforms and blogs. They can help you see what people think about ktfmt and what they use it for.
  • Integrating Code Formatting into Your Android Projects
    Ktfmt is a tool developed by Facebook that pretty-prints (formats) Kotlin code based on google-java-format. It always produces the same result, regardless of how the code looks initially, allowing developers to focus on the essence of their code. - Source: dev.to / over 1 year ago
  • Pre-push Hooks
    The script below will run ktfmt over a Kotlin codebase and fail the push if any of the files are not well-formatted. It does also use a custom Gradle plugin we built around ktfmt, which accepts a --run-over change set. This script will leave the fixed formatting changes in the tree, awaiting the developer to intervene, commit, and try again. - Source: dev.to / over 1 year ago
  • Google's Kotlin Style Guide vs Kotlin Official Code Style
    My team uses ktfmt. It is more aggressive and opinionated about formatting than ktlint, which we view as a good thing. Source: over 2 years ago
  • What are the good code formatters for Kotlin?
    I can recommend ktfmt. It is based on the fast Google Java Formatter and produces deterministic formatting. Plugins for Maven, Gradle and IntelliJ are available. Source: over 2 years ago
  • From zero to 10M lines of Kotlin
    I wanted to post that ktfmt, the FB Kotlin formatter, is much less well-known than ktlint. IMO, it produces the most (subjectively) readable code, and is the only one that doesn't leave room for you to inject personal style in certain places. (ktlint will let you get away with one of several ways of formatting code, so long as it falls within some guidelines, which can lead to inconsistent formatting). It's a... - Source: Hacker News / almost 3 years ago
  • A few Kotlin questions from a Rustacean
    Others have covered most of your questions, but since you asked about linters: if you want a highly opinionated formatter in the spirit of gofmt or google-java-format, you can check out ktfmt. Source: over 3 years ago

Do you know an article comparing ktfmt to other products?
Suggest a link to a post with product alternatives.

Suggest an article

ktfmt discussion

Log in or Post with

Is ktfmt good? This is an informative page that will help you find out. Moreover, you can review and discuss ktfmt here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.