From 57a8df2947a7047f1b3f99d861b6a167daad72a4 Mon Sep 17 00:00:00 2001 From: jackun Date: Sun, 3 May 2020 23:34:55 +0300 Subject: [PATCH] Add .editorconfig for automatically setting indentation formatting in supported IDEs or text editors --- .editorconfig | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..59f6734c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,22 @@ +# See http://editorconfig.org to read about the EditorConfig format. +# - Automatically supported by VS2017+ and most common IDE or text editors. +# - For older VS2010 to VS2015, install https://marketplace.visualstudio.com/items?itemName=EditorConfigTeam.EditorConfig + +# top-most EditorConfig file +root = true + +# Default settings: +# Use 4 spaces as indentation +[*] +indent_style = space +indent_size = 4 +insert_final_newline = true +trim_trailing_whitespace = true + +[src/overlay*{cpp,h}] +indent_size = 3 +trim_trailing_whitespace = true + +[meson.build] +indent_size = 2 +trim_trailing_whitespace = true