Skip to content

Instantly share code, notes, and snippets.

@changx03
Last active November 15, 2023 00:03
Show Gist options
  • Save changx03/c9167c5d46dff8ead956f24e25d8ea38 to your computer and use it in GitHub Desktop.
Save changx03/c9167c5d46dff8ead956f24e25d8ea38 to your computer and use it in GitHub Desktop.
C++ format based on Microsoft
Language: Cpp
BasedOnStyle: Microsoft
IndentWidth: 4
TabWidth: 4
UseTab: Never
ColumnLimit: 130
SpaceBeforeParens: Never
ReflowComments: true
AllowShortBlocksOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
AlignAfterOpenBracket: Align
AlignTrailingComments: false
SortIncludes: CaseInsensitive
IncludeBlocks: Regroup
PackConstructorInitializers: Never
PointerAlignment: Left
QualifierAlignment: Leave
ReferenceAlignment: Left
SeparateDefinitionBlocks: Always
AccessModifierOffset: -2
BreakBeforeBraces: Allman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment