set to use tabs in configuration files

This commit is contained in:
2025-03-21 17:35:41 +01:00
parent 4d31834178
commit 19a223dd29
2 changed files with 7 additions and 2 deletions

View File

@@ -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

View File

@@ -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