-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
45 lines (35 loc) · 1.1 KB
/
Copy path.editorconfig
File metadata and controls
45 lines (35 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
max_line_length = 100
# Markdown: allow trailing whitespace (sometimes used intentionally)
[*.md]
trim_trailing_whitespace = false
# YAML: 2 spaces
[*.{yml,yaml}]
indent_size = 2
# JSON: 2 spaces
[*.json]
indent_size = 2
# Shell scripts: 2 spaces (fine for your ops scripts)
[*.sh]
indent_size = 2
# C# / .NET
[*.cs]
indent_size = 4
# Keep using directives clean and stable
dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = true
# Prefer file-scoped namespaces for modern .NET (optional but consistent)
csharp_style_namespace_declarations = file_scoped:suggestion
# Prefer explicit access modifiers (reduces ambiguity)
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
# Basic var preferences (keep readable; avoid forcing var everywhere)
csharp_style_var_for_built_in_types = false:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = false:suggestion