Updated editorconfig: comments, all filetypes, matches UniSnip.

This commit is contained in:
Phil Gilmore 2026-08-25 14:54:28 -06:00
parent ff3ebecf73
commit 403250ad72

View File

@ -1,34 +1,90 @@
# EditorConfig is awesome: https://editorconfig.org
# There should usually only be one of these.
# If you want to override any .editorconfig settings in lower folders, create a new .editorconfig there
# and remove this line or set it to false. It will override duplicate entries and inherit the rest.
root=true
# ---- ---- ---- ---- ---- ---- ---- ----
# Defaults for all files.
# ---- ---- ---- ---- ---- ---- ---- ----
[{*, *.*}]
tab_width = 4
indent_size = 4
indent_style = tab
resharper_tabs_are_disallowed_highlighting=none
trim_trailing_whitespace = true
insert_final_newline = true
# ---- ---- ---- ---- ---- ---- ---- ----
# Code file types
# ---- ---- ---- ---- ---- ---- ---- ----
# ALWAYS include this to correct issues with "insert_final_newline=true" in the {*.*} glob above!
# Markdown files are sensitive to trailing whitespace.
[*.md]
trim_trailing_whitespace = false
insert_final_newline = false
[*.cs]
tab_width = 4
indent_size = 4
indent_style = tab
csharp_style_namespace_declarations=file_scoped:suggestion
resharper_tabs_are_disallowed_highlighting=none
[{*.vb, *.bas}]
tab_width = 4
indent_size = 4
indent_style = tab
[*.xml]
[{*.js, *.ts}]
tab_width = 4
indent_size = 4
indent_style = tab
indent_style = space
[*.py]
tab_width = 4
indent_size = 4
indent_style = tab
[{*.yml, *.yaml}]
tab_width = 2
indent_size = 2
indent_style = space
[*.pas]
tab_width = 2
indent_size = 2
indent_style = space
[*.sql]
tab_width = 4
indent_size = 4
indent_style = tab
# ---- ---- ---- ---- ---- ---- ---- ----
# Declarative / data file types
# ---- ---- ---- ---- ---- ---- ---- ----
[*.xml]
tab_width = 4
indent_size = 4
indent_style = tab
[{*.yml, *.yaml, Dockerfile, dockerfile}]
tab_width = 2
indent_size = 2
indent_style = space
[*.json]
tab_width = 2
indent_size = 2
indent_style = space
[*.html]
tab_width = 4
indent_size = 4
indent_style = tab
[*.txt]
tab_width = 4
indent_size = 4
indent_style = tab
trim_trailing_whitespace = false
insert_final_newline = true