From 8f5a0a08b664b359afa1347d27306b955ffecf9e Mon Sep 17 00:00:00 2001 From: Michael Langfermann Date: Sun, 25 Jan 2026 09:03:49 +0100 Subject: [PATCH 1/2] Add .editorconfig for consistent code formatting Define editor settings based on existing code conventions: - 2-space indentation for C++, CMake, shaders, and scripts - LF line endings, UTF-8 charset - Trim trailing whitespace, ensure final newline --- .editorconfig | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..8c2d9a0ac --- /dev/null +++ b/.editorconfig @@ -0,0 +1,39 @@ +root = true + +# Default for all files +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +# C/C++ source files +[*.{cpp,h,hpp,hh,cc,c}] +indent_style = space +indent_size = 2 +max_line_length = 120 + +# CMake +[{CMakeLists.txt,*.cmake}] +indent_style = space +indent_size = 2 + +# GLSL Shaders +[*.{glsl,vert,frag,comp}] +indent_style = space +indent_size = 2 + +# Python scripts +[*.py] +indent_style = space +indent_size = 2 + +# Lua scripts +[*.lua] +indent_style = space +indent_size = 2 + +# YAML/Markdown +[*.{yml,yaml,md}] +indent_style = space +indent_size = 2 From 3afbac95f80ee97c2e0bd5ef9569b43785e40b14 Mon Sep 17 00:00:00 2001 From: Try Date: Sun, 25 Jan 2026 20:30:05 +0100 Subject: [PATCH 2/2] More shader extensions --- .editorconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 8c2d9a0ac..a5abedb21 100644 --- a/.editorconfig +++ b/.editorconfig @@ -19,7 +19,7 @@ indent_style = space indent_size = 2 # GLSL Shaders -[*.{glsl,vert,frag,comp}] +[*.{glsl,vert,frag,comp,tese,tesc,task,mesh}] indent_style = space indent_size = 2