Skip to content

Instantly share code, notes, and snippets.

@talenguyen
Last active January 17, 2019 10:25
Show Gist options
  • Save talenguyen/85b416b7457a27b7d0dc4af2ef1b4dbe to your computer and use it in GitHub Desktop.
Save talenguyen/85b416b7457a27b7d0dc4af2ef1b4dbe to your computer and use it in GitHub Desktop.
My .editorconfig for ktlint
[*.{kt,kts}]
# possible values: number (e.g. 2), "unset" (makes ktlint ignore indentation completely)
indent_size=2
# possible values: number (e.g. 2), "unset"
continuation_indent_size=4
# true (recommended) / false
insert_final_newline=true
# possible values: number (e.g. 120) (package name, imports & comments are ignored), "off"
# it's automatically set to 100 on `ktlint --android ...` (per Android Kotlin Style Guide)
max_line_length=100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment