-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
58 lines (46 loc) 路 1.55 KB
/
Copy path.editorconfig
File metadata and controls
58 lines (46 loc) 路 1.55 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
# Editor settings that match what is already in the tree, so an editor set up
# for some other project stops silently reformatting this one. The rules here
# describe the existing files rather than proposing a new style; .gitattributes
# already pins the line endings on the Git side, and this pins them on the way
# in.
#
# https://editorconfig.org -- supported natively by most editors, and by a
# plugin everywhere else.
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
# C++20 sources and headers. Four spaces, per CONTRIBUTING.md.
[*.{cpp,hpp,c,h}]
indent_size = 4
# GDScript. Godot's own convention is tabs, its editor inserts tabs, and every
# committed .gd file here uses them; spaces would produce a diff on every save
# from inside the engine.
[*.{gd,gdshader,shader}]
indent_style = tab
# Godot resource formats are written by the engine, not by hand.
[*.{tscn,tres,gdextension,cfg,import}]
indent_style = tab
trim_trailing_whitespace = false
[*.py]
indent_size = 4
[*.{yml,yaml}]
indent_size = 2
[*.{json,jsonc}]
indent_size = 2
[*.ps1]
indent_size = 4
[{CMakeLists.txt,*.cmake}]
indent_size = 4
# Markdown treats two trailing spaces as a hard line break, so stripping them
# silently changes rendered output.
[*.md]
trim_trailing_whitespace = false
# Generated or vendored. Left exactly as whatever produced them wrote them.
[{extension_api.json,gdextension_interface.h,resources/didi_class_reference.json}]
trim_trailing_whitespace = false
insert_final_newline = false