Skip to content

Commit

Permalink
Add common trim_trailing_whitespace and insert_final_newline settings
Browse files Browse the repository at this point in the history
  • Loading branch information
vlsi committed Sep 11, 2023
1 parent 11f98ad commit 77421a2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# editorconfig.org
root = true

[*]
trim_trailing_whitespace = true
insert_final_newline = true

[{*.patch,syntax_test_*}]
trim_trailing_whitespace = false

[{*.c,*.cpp,*.h,*.ino,*.py,Makefile}]
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf

[{*.c,*.cpp,*.h,*.ino}]
Expand All @@ -18,6 +20,10 @@ indent_size = 2
indent_style = tab
indent_size = 2

[*.md]
# Two spaces at the end of the line means newline in Markdown
trim_trailing_whitespace = false

[{*.py}]
indent_style = space
indent_size = 4
Expand Down

0 comments on commit 77421a2

Please sign in to comment.