Skip to content

Commit 5d7a04a

Browse files
Update .editorconfig to maintain whitespace.
1 parent c6a55f4 commit 5d7a04a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.editorconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,26 @@ root = true
33
[*]
44
charset = utf-8
55
end_of_line = lf
6+
# Note: the trim_trailing_whitespace option is br0ken in visualstudio, it
7+
# simply does not follow the EditorConfig specification. Therefor you are
8+
# strongly encouraged to not rely on this setting alone, but please install
9+
# the following extension too: https://marketplace.visualstudio.com/items?itemName=MadsKristensen.TrailingWhitespaceVisualizer
10+
#
11+
# References:
12+
# https://developercommunity.visualstudio.com/t/EditorConfig:-trim_trailing_whitespace-d/1240174?space=8&q=trim_trailing_whitespace
13+
# https://developercommunity.visualstudio.com/t/editorconfig-trim_trailing_whitespace-on/134457?space=8&q=trim_trailing_whitespace
14+
# https://developercommunity.visualstudio.com/t/trim_trailing_whitespace-in-editorconfi/1351034?space=8&q=trim_trailing_whitespace
15+
# https://developercommunity.visualstudio.com/t/BUG:-editorconfig-trim_trailing_whitespa/953937?space=8&q=trim_trailing_whitespace
16+
trim_trailing_whitespace = true
17+
insert_final_newline = true
18+
indent_style = tab
19+
indent_size = 2
20+
21+
22+
[*.cs] # To match existing style
23+
indent_style = space
24+
indent_size = 4
25+
26+
27+
[*.yml]
28+
indent_style = space

0 commit comments

Comments
 (0)