Skip to content

Instantly share code, notes, and snippets.

@drawcode
Created September 4, 2025 19:51
Show Gist options
  • Save drawcode/ffed8885ef1c9daabad3b6b97dcff36d to your computer and use it in GitHub Desktop.
Save drawcode/ffed8885ef1c9daabad3b6b97dcff36d to your computer and use it in GitHub Desktop.
.editorconfig
# top-most EditorConfig file
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# C# formatting rules
[*.cs]
csharp_new_line_before_open_brace = none
csharp_new_line_before_else = false
csharp_new_line_before_catch = false
csharp_new_line_before_finally = false
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment