Skip to content

Instantly share code, notes, and snippets.

@EmmaG2
Last active September 4, 2024 17:06
Show Gist options
  • Save EmmaG2/2a32499a3d47c9a932157561d3906e57 to your computer and use it in GitHub Desktop.
Save EmmaG2/2a32499a3d47c9a932157561d3906e57 to your computer and use it in GitHub Desktop.
---
BasedOnStyle: Microsoft
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: "true"
AlignConsecutiveAssignments: "true"
AlignConsecutiveDeclarations: "true"
AlignEscapedNewlines: Left
AlignOperands: "true"
AlignTrailingComments: "true"
AllowAllArgumentsOnNextLine: "true"
AllowAllConstructorInitializersOnNextLine: "true"
AlwaysBreakBeforeMultilineStrings: "true"
ColumnLimit: "90"
IndentWidth: "2"
Language: Cpp
SpaceBeforeCpp11BracedList: "false"
SpacesBeforeTrailingComments: "2"
SpacesInAngles: "false"
SpacesInContainerLiterals: "false"
SpacesInParentheses: "false"
Standard: Auto
TabWidth: "2"
UseTab: Never
...

My own config for clang format

this is my clang config for all my IDEs, including notes...

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