-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
53 lines (46 loc) · 2.16 KB
/
.editorconfig
File metadata and controls
53 lines (46 loc) · 2.16 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
root = true
# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
# max_line_length = 120,192
tab_width = 4
ij_smart_tabs = false
ij_wrap_on_typing = false
trim_trailing_whitespace = false
[{*.yml,*.yaml}]
indent_size = 2
indent_style = space
[*.cs]
# Don't enforce line length - 160+ is fine
max_line_length = off
[*.{sh,py}]
end_of_line = lf
indent_style = tab
indent_size = 4
[*.{bat,ps1}]
end_of_line = crlf
indent_style = tab
indent_size = 4
# =========== Reference ===========
# https://editorconfig.org/
# Matchers:
# * Matches any string of characters, except path separators (/)
# ** Matches any string of characters
# ? Matches any single character
# [name] Matches any single character in name
# [!name] Matches any single character not in name
# {s1,s2,s3} Matches any of the strings given (separated by commas) (Available since EditorConfig Core 0.11.0)
# {num1..num2} Matches any integer numbers between num1 and num2, where num1 and num2 can be either positive or negative
# Properties:
# indent_style: set to tab or space to use hard tabs or soft tabs respectively.
# indent_size: a whole number defining the number of columns used for each indentation level and the width of soft tabs (when supported). When set to tab, the value of tab_width (if specified) will be used.
# tab_width: a whole number defining the number of columns used to represent a tab character. This defaults to the value of indent_size and doesn't usually need to be specified.
# end_of_line: set to lf, cr, or crlf to control how line breaks are represented.
# charset: set to latin1, utf-8, utf-8-bom, utf-16be or utf-16le to control the character set.
# trim_trailing_whitespace: set to true to remove any whitespace characters preceding newline characters and false to ensure it doesn't.
# insert_final_newline: set to true to ensure file ends with a newline when saving and false to ensure it doesn't.
# root: special property that should be specified at the top of the file outside of any sections. Set to true to stop .editorconfig files search on current file.