From cdd61a9873115b6b32c0cc879500b8798041ea83 Mon Sep 17 00:00:00 2001 From: Phil Heller Date: Fri, 30 Sep 2022 11:18:23 -0600 Subject: [PATCH] Improve .editorconfig - added root spec to prevent editorconfig from recursing to ancestor of project root - constrain formatting to .c and .h files - tested with Visual Studio Code 1.67.2 --- .editorconfig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 74abe869..b757fc37 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,2 +1,5 @@ -indent_style = tab -indent_size = 4 +root = true + +[*.{c,h}] +indent_size = 4 +indent_style = space