Skip to content

Commit e5d6e11

Browse files
vlsimarcphilipp
authored andcommitted
Add trim_trailing_whitespace and insert_final_newline to .editorconfig
It enables IDEs to trim the whitespace automatically
1 parent 771bcc9 commit e5d6e11

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
trim_trailing_whitespace = true
6+
insert_final_newline = true
7+
8+
[*.bat]
9+
end_of_line = crlf
10+
11+
[*.md]
12+
# Trailing whitespace is important in Markdown (they distinguish a new line from a new paragraph)
13+
trim_trailing_whitespace = false
14+
115
[*.{kt,kts}]
216
ij_kotlin_allow_trailing_comma = false
317
ij_kotlin_allow_trailing_comma_on_call_site = false

0 commit comments

Comments
 (0)