From efa90b5fa6b948b05b3577395ad1571bf0380c8f Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Wed, 18 Sep 2024 12:42:44 +0100 Subject: [PATCH] Add CSharp formatting --- roles/home-cli/files/clang-format | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/roles/home-cli/files/clang-format b/roles/home-cli/files/clang-format index 11d4cca..537ac95 100644 --- a/roles/home-cli/files/clang-format +++ b/roles/home-cli/files/clang-format @@ -1,6 +1,7 @@ # clang-format 14 --- BasedOnStyle: InheritParentConfig +# Language: Cpp AccessModifierOffset: -4 AlignAfterOpenBracket: DontAlign @@ -120,4 +121,20 @@ SpacesInSquareBrackets: false Standard: Latest TabWidth: 8 UseTab: Never +--- +Language: CSharp + +BreakBeforeBraces: Custom +BraceWrapping: + AfterClass: true + AfterControlStatement: Always + AfterEnum: true + AfterFunction: true + AfterStruct: true + BeforeCatch: true + BeforeElse: true + BeforeWhile: true + SplitEmptyFunction: true + SplitEmptyRecord: true + SplitEmptyNamespace: true ...