# top-most EditorConfig file root = true [*] charset = utf-8 end_of_line = lf indent_style = space indent_size = 2 max_line_length=120 insert_final_newline = true trim_trailing_whitespace = true [*.{kt,kts}] ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL ij_kotlin_name_count_to_use_star_import = 2147483647 ij_kotlin_name_count_to_use_star_import_for_members = 2147483647 ij_kotlin_packages_to_use_import_on_demand = unset ij_any_line_comment_at_first_column = false ij_any_add_a_space_at_line_comment_start = true [*.{gradle}] ij_any_line_comment_at_first_column = false ij_any_add_a_space_at_line_comment_start = true [*.go] indent_style = tab indent_size = tab # line bellow should be like "[*.{kt,kts}]" if your editor adds spaces, it will break... # https://github.com/pinterest/ktlint#intellij-idea-editorconfig-autoformat-issue # [*.{kt,kts}] # possible values: number (e.g. 2), "unset" (makes ktlint ignore indentation completely) # indent_size=2 # insert_final_newline=true # true (recommended) / false # 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=120