Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ktfmt to format Kotlin #176

Closed
dbarnett opened this issue Apr 14, 2021 · 1 comment · Fixed by #183
Closed

Support ktfmt to format Kotlin #176

dbarnett opened this issue Apr 14, 2021 · 1 comment · Fixed by #183
Labels
new formatter Request for integrating a formatter tool

Comments

@dbarnett
Copy link
Contributor

Formatter tool
ktfmt: https://facebookincubator.github.io/ktfmt/

Filetype(s)
kotlin

@dbarnett dbarnett added the new formatter Request for integrating a formatter tool label Apr 14, 2021
@dbarnett
Copy link
Contributor Author

Note there's also #127 to support an alternative ktlint formatter. This ktfmt tool (which is based on google-java-format engine) claims to produce more consistent formatting and handle some corner cases better: https://github.com/facebookincubator/ktfmt#ktfmt-vs-ktlint-vs-intellij.

flwyd added a commit to flwyd/vim-codefmt that referenced this issue Oct 9, 2021
Unfortunately, ktfmt doesn't yet support a --lines option to format a
range. See facebook/ktfmt#218 for the
feature request.
dbarnett pushed a commit that referenced this issue Oct 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new formatter Request for integrating a formatter tool
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant