Created
June 24, 2026 18:09
-
-
Save ericnewton76/79e36065eb4fc04a1f1281d408ada0d0 to your computer and use it in GitHub Desktop.
My default editorconfig
This file contains hidden or 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 — https://editorconfig.org | |
| # Establishes house indentation/line-ending conventions. dotnet format enforces these. | |
| root = true | |
| # Defaults for every file: CRLF, UTF-8, tidy whitespace. Indentation is set per file type below. | |
| [*] | |
| charset = utf-8 | |
| end_of_line = crlf | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true | |
| # C# — tabs (displayed 4 wide), CRLF. | |
| [*.cs] | |
| indent_style = tab | |
| indent_size = 4 | |
| tab_width = 4 | |
| end_of_line = crlf | |
| [*.cs] | |
| # Newline preferences for standard named structures (Allman style) | |
| csharp_new_line_before_open_brace = methods, types, control_flow | |
| # Overrides to force same-line braces (K&R / JS style) for anonymous & inline elements | |
| csharp_new_line_before_open_brace = anonymous_methods, anonymous_types, object_collection_array_initializers, lambda_expression:end_of_line | |
| # JSON (appsettings, etc.) — 2-space, CRLF. | |
| [*.json] | |
| indent_style = space | |
| indent_size = 2 | |
| end_of_line = crlf | |
| # .config files (nlog.config, etc.) — tabs (displayed 4 wide), CRLF. | |
| [*.config] | |
| indent_style = tab | |
| indent_size = 4 | |
| tab_width = 4 | |
| end_of_line = crlf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment