-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
75 lines (65 loc) · 2.68 KB
/
Copy path.editorconfig
File metadata and controls
75 lines (65 loc) · 2.68 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
67
68
69
70
71
72
73
74
75
# ==============================================================================
# EditorConfig for template-python
# https://editorconfig.org
#
# This file enforces consistent coding styles across multiple editors and IDEs.
# It is designed to work out-of-the-box for 95% of standard programming
# environments and aligns with high-quality open-source standards.
# ==============================================================================
# Top-most EditorConfig file for the project
root = true
# ------------------------------------------------------------------------------
# Default Settings (Applies to all files)
# ------------------------------------------------------------------------------
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
# ------------------------------------------------------------------------------
# Web, Data, and Frontend (2 spaces)
# ------------------------------------------------------------------------------
[*.{js,jsx,ts,tsx,vue,json,yml,yaml,toml,html,css,scss,xml}]
indent_style = space
indent_size = 2
# ------------------------------------------------------------------------------
# Python (4 spaces, standard PEP-8)
# ------------------------------------------------------------------------------
[*.py]
indent_style = space
indent_size = 4
# ------------------------------------------------------------------------------
# Go (Tabs)
# ------------------------------------------------------------------------------
[*.go]
indent_style = tab
# ------------------------------------------------------------------------------
# Rust, C, C++, Java, C# (4 spaces)
# ------------------------------------------------------------------------------
[*.{rs,c,h,cpp,hpp,java,cs}]
indent_style = space
indent_size = 4
# ------------------------------------------------------------------------------
# Shell Scripts and Docker (2 spaces)
# ------------------------------------------------------------------------------
[*.{sh,bash}]
indent_style = space
indent_size = 2
[{Dockerfile,*.dockerfile}]
indent_style = space
indent_size = 2
# ------------------------------------------------------------------------------
# Makefiles (Must use tabs for indentation)
# ------------------------------------------------------------------------------
[{Makefile,*.mk}]
indent_style = tab
# ------------------------------------------------------------------------------
# Markdown Documents
# ------------------------------------------------------------------------------
[*.md]
# Markdown allows double spaces at the end of a line for hard line breaks.
trim_trailing_whitespace = false
indent_style = space
indent_size = 2