Skip to content

Instantly share code, notes, and snippets.

@toresbe
Created April 18, 2024 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toresbe/254e0b58a0cba141ffcc49fd4722a201 to your computer and use it in GitHub Desktop.
Save toresbe/254e0b58a0cba141ffcc49fd4722a201 to your computer and use it in GitHub Desktop.
.editorconfig for ktlint and IntelliJ
[*.{kt,kts}]
max_line_length = off
# If EditorConfig support is enabled in IntelliJ IDEA, the following settings override Code Style settings.
# This is the minimal set to make IDEAs formatter compatible with ktlint.
# The settings here are the equivalent to the settings prescribed in
# https://pinterest.github.io/ktlint/latest/rules/configuration-intellij-idea/
insert_final_newline = true
# This is generally the default.
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
# Disable wildcard imports
ij_kotlin_name_count_to_use_star_import = 2147483647
ij_kotlin_name_count_to_use_star_import_for_members = 2147483647
# For java.util., ... too
ij_kotlin_packages_to_use_import_on_demand = unset
# End EditorConfig settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment