From ef301893a5bd149767110841f8b0a7ebb7dee00e Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sat, 16 Oct 2021 17:46:10 +0100 Subject: [PATCH] editorconfig: add initial file/config editorconfig configuration files hold editor style hints, and is supported by many popular editors. See https://editorconfig.org/ . The vast majority of the mpv source/text files are already styled as 4 space indentation, trailing newline at EOF, and UTF-8 encoding. This commit adds a single .editorconfig root file which applies these rules to all files using the glob "[*]". If it turns out to be too inclusive then we can narrow it down later. Signed-off-by: Emil Velikov --- .editorconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..f16717b802 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +# To use this config on you editor, follow the instructions at: +# http://editorconfig.org + +root = true + +[*] +charset = utf-8 +insert_final_newline = true +indent_style = space +indent_size = 4