Created
June 4, 2024 08:05
-
-
Save jesperronn/e5415bbbdbc6028db09c4943c108da1d to your computer and use it in GitHub Desktop.
.editorconfig improve IntelliJ defaults (google-java-code, properties in UTF-8, etc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# EditorConfig is awesome: https://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
indent_style = space | |
indent_size = 2 | |
indent_style = space | |
insert_final_newline = true | |
max_line_length = 125 | |
trim_trailing_whitespace = true | |
ij_continuation_indent_size = 4 | |
[*.java] | |
ij_java_class_count_to_use_import_on_demand = 999 | |
ij_java_layout_static_imports_separately = true | |
[{*.ats,*.cts,*.mts,*.ts}] | |
ij_typescript_spaces_within_imports = true | |
[{*.cjs,*.js}] | |
ij_javascript_spaces_within_imports = true | |
[{*.gant,*.groovy,*.gy,Jenkinsfile,*.jenkinsfile,*.Jenkinsfile,*.spec}] | |
indent_size = 4 | |
[{*.properties,spring.handlers,spring.schemas}] | |
charset = utf-8 | |
[{*.ps1,*.psd1,*.psm1}] | |
max_line_length = 115 | |
# 4 space indentation for python | |
[*.{py,groovy,jenkinsfile,Jenkinsfile}] | |
[{*.py,*.pyw}] | |
max_line_length = 80 | |
indent_size = 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment