From f2506bb23bdab23a432e7eee855d385badeca143 Mon Sep 17 00:00:00 2001 From: gitolicious Date: Wed, 8 May 2019 15:37:18 +0200 Subject: [PATCH] Create .editorconfig (#524) * Create .editorconfig Code formatting instruction for editors https://editorconfig.org/ * Add tcc Co-authored-by: Otto Winter --- .editorconfig | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..f24d70487a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,27 @@ +root = true + +# general +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 + +# python +[*.{py}] +indent_style = space +indent_size = 4 + +# C++ +[*.{cpp,h,tcc}] +indent_style = space +indent_size = 2 + +# Web +[*.{js,html,css}] +indent_style = space +indent_size = 2 + +# YAML +[*.{yaml,yml}] +indent_style = space +indent_size = 2