From 19a223dd296cc1979acf37d4a6a9e7773ebfaf28 Mon Sep 17 00:00:00 2001 From: Quinn Date: Fri, 21 Mar 2025 17:35:41 +0100 Subject: [PATCH] set to use tabs in configuration files --- .clang-format | 2 +- .editorconfig | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.clang-format b/.clang-format index 5c1061b..f152eb9 100644 --- a/.clang-format +++ b/.clang-format @@ -6,7 +6,7 @@ BasedOnStyle: '' # (LLVM,Google,Chromium,Mozilla,Web Standard: Auto # automatically detect the language version ColumnLimit: 0 # 0: disable column limit LineEnding: LF # use LF line endings -UseTab: Never # (Never,ForIndentation,ForContinuationAndIndentation,Always) +UseTab: ForContinuationAndIndentation # (Never,ForIndentation,ForContinuationAndIndentation,Always) TabWidth: 4 # recommended to set this equal to IndentWidth IndentWidth: 4 # how wide each indent is ContinuationIndentWidth: 4 # width for a line continuation diff --git a/.editorconfig b/.editorconfig index e6f458a..46938be 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,10 +6,15 @@ end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true -[*.{c,h,cpp,hpp,rs}] +[*.{rs}] indent_style = space indent_size = 4 + +[*.{c,h,cpp,hpp,rs}] +indent_style = tab +indent_size = 4 + [makefile] indent_style = tab indent_size = 1