From 403250ad7255db5cb408dfdde5b489a5ec9b8771 Mon Sep 17 00:00:00 2001 From: Phil Gilmore Date: Tue, 25 Aug 2026 14:54:28 -0600 Subject: [PATCH] Updated editorconfig: comments, all filetypes, matches UniSnip. --- .editorconfig | 70 +++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 63 insertions(+), 7 deletions(-) diff --git a/.editorconfig b/.editorconfig index 28764cf..99dbf4f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -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