--- BasedOnStyle: Microsoft AlignAfterOpenBracket: Align AlignConsecutiveMacros: 'true' AlignConsecutiveAssignments: 'false' AlignEscapedNewlines: Left AlignOperands: 'true' AlignTrailingComments: 'true' AllowAllArgumentsOnNextLine: 'true' AllowShortBlocksOnASingleLine: 'false' AllowShortCaseLabelsOnASingleLine: 'true' AllowShortIfStatementsOnASingleLine: Never BinPackArguments: 'false' BinPackParameters: 'false' IncludeBlocks: Regroup BraceWrapping: AfterClass: true AfterControlStatement: true AfterEnum: true # <-- You need this AfterFunction: true AfterNamespace: true AfterObjCDeclaration: true AfterStruct: true AfterUnion: true AfterExternBlock: false # <-- And this BeforeCatch: true BeforeElse: true IndentBraces: false SplitEmptyFunction: false SplitEmptyRecord: false SplitEmptyNamespace: false BreakBeforeBraces: Custom # <-- And this BreakBeforeBinaryOperators: All ColumnLimit: 0 IndentCaseLabels: 'false' Language: Cpp MaxEmptyLinesToKeep: '1' PointerAlignment: Left ReflowComments: 'true' SortIncludes: 'true' SortUsingDeclarations: 'true' SpaceAfterLogicalNot: 'false' SpaceBeforeAssignmentOperators: 'true' SpaceBeforeCpp11BracedList: 'true' SpaceBeforeInheritanceColon: 'true' TabWidth: '4' UseTab: Never AccessModifierOffset: '-4' ...