-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.editorconfig
More file actions
66 lines (55 loc) · 1.44 KB
/
.editorconfig
File metadata and controls
66 lines (55 loc) · 1.44 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# EditorConfig - consistent code formatting across editors
# https://editorconfig.org
#
# This file ensures that everyone who opens the code sees the same
# formatting, regardless of their editor (Visual Studio, VS Code, Rider, etc.)
# Most editors read this file automatically - no plugin needed.
# Top-most EditorConfig file
root = true
# Default settings for all files
[*]
indent_style = space
indent_size = 4
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# C# files (Unity/MelonLoader mods)
[*.cs]
indent_size = 4
# Braces on their own line (Allman style - C# standard)
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
# Prefer explicit types for clarity
csharp_style_var_for_built_in_types = false:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
# Organize usings
dotnet_sort_system_directives_first = true
# XML and project files
[*.{xml,csproj,props,targets}]
indent_size = 2
# Markdown documentation
[*.md]
trim_trailing_whitespace = false
indent_size = 2
# JSON files
[*.json]
indent_size = 2
# PowerShell scripts
[*.ps1]
indent_size = 4
# Python (for Godot mods or tools)
[*.py]
indent_size = 4
# GDScript (Godot)
[*.gd]
indent_style = tab
indent_size = 4
# C++ (Unreal Engine or custom engines)
[*.{cpp,h,hpp,cc}]
indent_size = 4
# YAML (config files)
[*.{yml,yaml}]
indent_size = 2