|
1 |
| -# top-most EditorConfig file |
| 1 | +# EditorConfig: https://EditorConfig.org |
2 | 2 | root = true
|
3 | 3 |
|
4 |
| -# see Client and Server folders for |
5 |
| -# language unique editor configurations |
6 |
| - |
7 |
| -# global baselines |
| 4 | +#### Core EditorConfig Options #### |
8 | 5 | [*]
|
9 |
| -charset = utf-8 |
10 |
| -end_of_line = lf |
| 6 | +charset = utf-8 # Use UTF-8 character encoding |
| 7 | +end_of_line = lf # Use LF line endings (Unix-style) |
| 8 | +insert_final_newline = true # Add empty line at end of files |
| 9 | +trim_trailing_whitespace = true # Remove whitespace at end of lines |
| 10 | +indent_style = space # Use spaces for indentation |
| 11 | +indent_size = 2 # Use 2 spaces per indentation level |
| 12 | +tab_width = 2 # Set tab width to 2 spaces |
| 13 | + |
| 14 | +# Markdown files |
| 15 | +[*.md] |
| 16 | +trim_trailing_whitespace = false # Allow trailing whitespace for line breaks |
| 17 | + |
| 18 | +# Batch and command files |
| 19 | +[*.{cmd,bat}] |
| 20 | +end_of_line = crlf # Use CRLF for Windows specific files |
| 21 | + |
| 22 | +# .NET source files |
| 23 | +[*.{cs,vb}] |
| 24 | +indent_size = 4 # Use 4 spaces for .NET files |
| 25 | +tab_width = 4 # Set tab width to 4 spaces |
| 26 | + |
| 27 | +dotnet_sort_system_directives_first = true # Place System.* usings before others |
| 28 | +dotnet_separate_import_directive_groups = false # Don't add blank lines between using directives |
11 | 29 |
|
12 |
| -indent_style = space |
13 |
| -indent_size = 2 |
14 |
| -tab_width = 2 |
| 30 | +csharp_style_var_elsewhere = false # Use explicit types when type isn't obvious |
| 31 | +csharp_style_var_for_built_in_types = false # Use explicit types for built-in types |
| 32 | +csharp_style_var_when_type_is_apparent = false # Use explicit types even when obvious |
15 | 33 |
|
16 |
| -line_length = 150 |
17 |
| -max_line_length = 150 |
18 |
| -trim_trailing_whitespace = true |
19 |
| -insert_final_newline = true |
| 34 | +# Expression-level preferences that differ from defaults |
| 35 | +csharp_style_expression_bodied_methods = true:silent # Allow expression-bodied methods |
| 36 | +csharp_style_expression_bodied_properties = true:silent # Allow expression-bodied properties |
20 | 37 |
|
21 |
| -[*.{xml,yml}] |
22 |
| -indent_style = space |
23 |
| -indent_size = 2 |
| 38 | +# Diagnostic overrides |
| 39 | +dotnet_diagnostic.IDE0058.severity = none # Disable "use '_' discard" value warnings |
0 commit comments