-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
55 lines (43 loc) · 898 Bytes
/
.editorconfig
File metadata and controls
55 lines (43 loc) · 898 Bytes
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
# EditorConfig is awesome: http://EditorConfig.org
# https://github.com/jokeyrhyme/standard-editorconfig
# top-most EditorConfig file
root = true
# Default settings:
# Use UTF-8 as the default encoding
# A newline ending every file
# Use 2 spaces as indentation
[*]
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
charset = utf-8
end_of_line = lf
# C/C++ files
[*.{cpp,hpp,c,h,in}]
indent_size = 4
curly_bracket_next_line = true
indent_brace_style = stroustrup
# XML files
[*.xml]
indent_size = 2
# Go files
[*.go]
indent_size = 4
# Shell scripts
[*.sh]
indent_size = 2
# Python files
[*.py]
indent_size = 4
# Markdown files
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
# YAML config files
[*.yml,yaml]
indent_size = 2
# Web dev files
[*.{html,js,jsx,ts,tsx,mts,json,ts,mts}]
indent_size = 2
indent_style = space