Skip to content

Instantly share code, notes, and snippets.

@Morteza-QN
Last active February 13, 2024 09:25
Show Gist options
  • Save Morteza-QN/52d7dcd913c35cbe60c19f3090d34b45 to your computer and use it in GitHub Desktop.
Save Morteza-QN/52d7dcd913c35cbe60c19f3090d34b45 to your computer and use it in GitHub Desktop.
Code style for editor Config
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = false
indent_style = space
indent_size = 4
max_line_length = 120
[*.yml]
indent_size = 2
[*.json]
indent_size = 2
[*.kt]
indent_size = 4
max_line_length = 130
ij_kotlin_allow_trailing_comma = true
# trailing-comma-on-call-site = enabled
# trailing-comma-on-declaration-site = enabled
ij_kotlin_allow_trailing_comma_on_call_site = true
# alphabetical with capital letters before lower case letters (e.g. Z before a), no blank lines
# ij_kotlin_imports_layout=*
# default IntelliJ IDEA style, same as alphabetical, but with "java", "javax", "kotlin" and alias imports in the end of the imports list
# ij_kotlin_imports_layout=*,java.**,javax.**,kotlin.**,^
# custom imports layout
ij_kotlin_imports_layout = android.**, |, ^org.junit.**, kotlin.io.Closeable.*, |, *, ^
# This setting only takes effect when rule no-wildcard-imports is enabled.
ij_kotlin_packages_to_use_import_on_demand = java.util.*, kotlinx.android.synthetic.**
[*.kts]
indent_size = 2
[*.gradle]
indent_size = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment