From fadb5e75dd8cb77c44c905cd766b42e0ee5e9271 Mon Sep 17 00:00:00 2001 From: Zhenhua Wang <4936589+zhenhuaw-me@users.noreply.github.com> Date: Fri, 15 Aug 2025 15:54:37 +0800 Subject: [PATCH] [None][chore] add a EditorConfig config (#6897) Signed-off-by: Zhenhua Wang --- .editorconfig | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..733d2aced5 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,24 @@ +# Auto basic formatting when saving file with EditorConfig https://editorconfig.org/ + +# top-most EditorConfig file +root = true + +[*] +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true + +# make +[Makefile*] +indent_style = tab +indent_size = 4 + +# c++ +[*.{cpp,cu,h}] +indent_style = space +indent_size = 4 + +# python +[*.py] +indent_style = space +indent_size = 4