diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..776edcb5d8 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,31 @@ +root = true + +# Mirrors .gitattributes: LF everywhere except the Windows script and solution files, which are CRLF. +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.ps1] +end_of_line = crlf + +[*.cmd] +end_of_line = crlf + +[*.bat] +end_of_line = crlf + +[*.sln] +end_of_line = crlf + +# Two trailing spaces are a hard line break in Markdown. +[*.md] +trim_trailing_whitespace = false + +# These existing test sources carry a UTF-8 BOM. +[runtime/test/d3d12_depth_resolve_test.cpp] +charset = utf-8-bom + +[runtime/test/d3d12_sparse_queue_family_test.cpp] +charset = utf-8-bom