Created
May 27, 2025 11:08
-
-
Save wasiliysoft/1f66c2cb90f709454fb70a620730b4d5 to your computer and use it in GitHub Desktop.
VSCode clang-format as Arduino IDE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BasedOnStyle: Google | |
| Language: Cpp | |
| AccessModifierOffset: -2 | |
| AlignAfterOpenBracket: Align | |
| AlignConsecutiveAssignments: false | |
| AlignConsecutiveDeclarations: false | |
| AlignEscapedNewlines: Left | |
| AlignOperands: true | |
| AlignTrailingComments: true | |
| AllowAllParametersOfDeclarationOnNextLine: false | |
| AllowShortBlocksOnASingleLine: Never | |
| AllowShortCaseLabelsOnASingleLine: false | |
| AllowShortFunctionsOnASingleLine: None | |
| AllowShortIfStatementsOnASingleLine: true | |
| AllowShortLoopsOnASingleLine: false | |
| AlwaysBreakAfterDefinitionReturnType: None | |
| AlwaysBreakAfterReturnType: None | |
| AlwaysBreakBeforeMultilineStrings: false | |
| AlwaysBreakTemplateDeclarations: Yes | |
| BinPackArguments: false | |
| BinPackParameters: false | |
| BraceWrapping: | |
| AfterClass: false | |
| AfterControlStatement: false | |
| AfterEnum: false | |
| AfterFunction: false | |
| AfterNamespace: false | |
| AfterObjCDeclaration: false | |
| AfterStruct: false | |
| AfterUnion: false | |
| BeforeCatch: false | |
| BeforeElse: false | |
| IndentBraces: false | |
| SplitEmptyFunction: false | |
| SplitEmptyRecord: false | |
| SplitEmptyNamespace: false | |
| BreakBeforeBinaryOperators: None | |
| BreakBeforeBraces: Custom | |
| BreakBeforeTernaryOperators: false | |
| BreakConstructorInitializers: BeforeComma | |
| BreakAfterJavaFieldAnnotations: false | |
| BreakStringLiterals: true | |
| ColumnLimit: 200 | |
| CommentPragmas: '^ IWYU pragma:' | |
| CompactNamespaces: false | |
| ConstructorInitializerAllOnOneLineOrOnePerLine: false | |
| ConstructorInitializerIndentWidth: 4 | |
| ContinuationIndentWidth: 4 | |
| Cpp11BracedListStyle: true | |
| DerivePointerAlignment: false | |
| DisableFormat: false | |
| ExperimentalAutoDetectBinPacking: false | |
| FixNamespaceComments: true | |
| ForEachMacros: | |
| - foreach | |
| - Q_FOREACH | |
| - BOOST_FOREACH | |
| IncludeBlocks: Preserve | |
| IncludeCategories: | |
| - Regex: '^<.*\.h>' | |
| Priority: 1 | |
| - Regex: '^<.*' | |
| Priority: 2 | |
| - Regex: '.*' | |
| Priority: 3 | |
| IncludeIsMainRegex: '([-_](test|unittest))?$' | |
| IndentCaseLabels: false | |
| IndentPPDirectives: None | |
| IndentWidth: 2 | |
| IndentWrappedFunctionNames: false | |
| JavaScriptQuotes: Leave | |
| JavaScriptWrapImports: true | |
| KeepEmptyLinesAtTheStartOfBlocks: false | |
| MacroBlockBegin: '' | |
| MacroBlockEnd: '' | |
| MaxEmptyLinesToKeep: 3 | |
| NamespaceIndentation: None | |
| ObjCBlockIndentWidth: 2 | |
| ObjCSpaceAfterProperty: false | |
| ObjCSpaceBeforeProtocolList: true | |
| PenaltyBreakAssignment: 2 | |
| PenaltyBreakBeforeFirstCallParameter: 19 | |
| PenaltyBreakComment: 300 | |
| PenaltyBreakFirstLessLess: 120 | |
| PenaltyBreakString: 1000 | |
| PenaltyExcessCharacter: 1000000 | |
| PenaltyReturnTypeOnItsOwnLine: 60 | |
| PointerAlignment: Left | |
| ReflowComments: true | |
| SortIncludes: false | |
| SortUsingDeclarations: false | |
| SpaceAfterCStyleCast: false | |
| SpaceAfterTemplateKeyword: true | |
| SpaceBeforeAssignmentOperators: true | |
| SpaceBeforeCpp11BracedList: false | |
| SpaceBeforeCtorInitializerColon: true | |
| SpaceBeforeInheritanceColon: true | |
| SpaceBeforeParens: ControlStatements | |
| SpaceBeforeRangeBasedForLoopColon: true | |
| SpaceInEmptyParentheses: false | |
| SpacesBeforeTrailingComments: 2 | |
| SpacesInAngles: false | |
| SpacesInContainerLiterals: true | |
| SpacesInCStyleCastParentheses: false | |
| SpacesInParentheses: false | |
| SpacesInSquareBrackets: false | |
| Standard: Cpp11 | |
| TabWidth: 2 | |
| UseTab: Never |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment