Skip to content

Commit 2c874ba

Browse files
committed
Add .editorconfig file
.editorconfig is a quality of life improvement that helps maintain the same formatting throughout the files. If you get an extension to your code editor, it automatically checks and corrects styling in files upon saving. Some editors even have native support, for more info see editorconfig.org. I find this most useful for automatically inserting final newline in the files as well as for trimming the trailing whitespaces; however; you can also set indent style (tab vs spaces), indent size, tab width, enconding, and end of line style (windows vs unix).
1 parent 9aa8edd commit 2c874ba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
root = true
2+
3+
[*.adoc]
4+
insert_final_newline = true
5+
trim_trailing_whitespace = true

0 commit comments

Comments
 (0)