Skip to content

Instantly share code, notes, and snippets.

@DamianSuess
Last active May 28, 2026 16:55
Show Gist options
  • Select an option

  • Save DamianSuess/a7daefdff068e058f9af20074594fce3 to your computer and use it in GitHub Desktop.

Select an option

Save DamianSuess/a7daefdff068e058f9af20074594fce3 to your computer and use it in GitHub Desktop.
---
# References:
# - https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# - Terminal - https://github.com/microsoft/terminal/blob/main/.clang-format
BasedOnStyle: Microsoft
AlignConsecutiveMacros: true
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignAfterOpenBracket: Align
AlignEscapedNewlines: DontAlign
AlignOperands: 'true'
AlignTrailingComments: 'true'
#AllowAllArgumentsOnNextLine: false
#AlwaysBreakAfterReturnType: None
#BinPackArguments: false
BreakBeforeBraces: Allman
ColumnLimit: '120'
ContinuationIndentWidth: '2'
IncludeBlocks: Merge
IndentCaseLabels: 'true'
IndentExternBlock: NoIndent
IndentWidth: '2'
InsertNewlineAtEOF: true
MaxEmptyLinesToKeep: '1'
NamespaceIndentation: All
SortIncludes: 'true'
SortUsingDeclarations: 'true'
SpaceAfterCStyleCast: 'false'
SpaceAfterLogicalNot: 'false'
SpaceInEmptyParentheses: 'false'
SpacesInAngles: 'false'
SpacesInContainerLiterals: 'false'
SpacesInParentheses: 'false'
SpacesInSquareBrackets: 'false'
TabWidth: '2'
UseTab: Never
...

Standard Xeno Innovations, Inc. clang-format file based on Microsoft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment