Skip to content

Instantly share code, notes, and snippets.

@TomK
Last active July 11, 2024 11:50
Show Gist options
  • Save TomK/567b2ef574fac651e1ebbd682cc7ae0f to your computer and use it in GitHub Desktop.
Save TomK/567b2ef574fac651e1ebbd682cc7ae0f to your computer and use it in GitHub Desktop.
IntelliJ `.editorconfig` file
# top-most EditorConfig file
root = true
[*.go]
ij_formatter_enabled = false
[*]
# Unix-style newlines with a newline ending every file
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
ij_any_align_multiline_parameters = false
ij_any_catch_on_new_line = true
ij_any_else_on_new_line = true
ij_any_finally_on_new_line = true
ij_any_block_brace_style = next_line
ij_any_method_brace_style = next_line
ij_any_class_brace_style = next_line
ij_any_space_before_if_parentheses = false
ij_any_space_before_for_parentheses = false
ij_any_space_before_switch_parentheses = false
ij_any_space_before_catch_parentheses = false
ij_any_line_comment_add_space = true
ij_any_block_comment_add_space = true
; JS
ij_javascript_function_expression_brace_style = next_line
ij_javascript_force_semicolon_style = true
; TS
ij_typescript_function_expression_brace_style = next_line
ij_typescript_force_semicolon_style = true
; PHP
ij_php_new_line_after_php_opening_tag = false
ij_php_blank_lines_before_package = 0
ij_php_blank_lines_after_opening_tag = 0
ij_php_keep_blank_lines_in_code = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment