Add editorconfig

This commit is contained in:
Erick Guan 2024-03-02 01:50:42 +01:00
parent 532f5f0b70
commit b5f4b3a838
1 changed files with 21 additions and 0 deletions

21
.editorconfig Normal file
View File

@ -0,0 +1,21 @@
# Top-level setting to indicate this is the root .editorconfig file
root = true
# Default settings for all files
[*]
# Enforce LF (\n) as the line ending across all files for consistency
end_of_line = lf
# Ensure every file ends with a newline
insert_final_newline = true
charset = utf-8
# Use spaces for indentation (as opposed to tabs)
indent_style = space
# Set the width of a single indentation level to 2 spaces
indent_size = 2
trim_trailing_whitespace = true
# Specific settings for Markdown files
[*.md]
# Disable trimming of trailing whitespace in Markdown files,
# important for Markdown syntax where trailing spaces can be meaningful
trim_trailing_whitespace = false