You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/software/ide-v2/tutorials/ide-v2-customize-auto-formatter/content.md
+2-147
Original file line number
Diff line number
Diff line change
@@ -63,154 +63,9 @@ If you add a `.clang-format` configuration file to the root of a sketch, the Ard
63
63
64
64
Here you can find the default formatting file used in the Arduino IDE 2.0. If you wish to customize how your auto formatting acts in the IDE then starting with this file is a good idea.
65
65
66
-
***Please note that the custom configuration file completely overrides the Arduino default configuration, rather than merging with it. Any configuration option you don't set in your custom file will be set to the ClangFormat default value.***
# Docs say "Do not use this in config files". The default (LLVM 11.0.1) is "false".
138
-
#ExperimentalAutoDetectBinPacking:
139
-
FixNamespaceComments: false
140
-
ForEachMacros: []
141
-
IncludeBlocks: Preserve
142
-
IncludeCategories: []
143
-
# "" matches none
144
-
IncludeIsMainRegex: ""
145
-
IncludeIsMainSourceRegex: ""
146
-
IndentCaseBlocks: true
147
-
IndentCaseLabels: true
148
-
IndentExternBlock: Indent
149
-
IndentGotoLabels: false
150
-
IndentPPDirectives: None
151
-
IndentWidth: 2
152
-
IndentWrappedFunctionNames: false
153
-
InsertTrailingCommas: None
154
-
# Java-specific
155
-
#JavaImportGroups:
156
-
# JavaScript-specific
157
-
#JavaScriptQuotes:
158
-
#JavaScriptWrapImports
159
-
KeepEmptyLinesAtTheStartOfBlocks: true
160
-
MacroBlockBegin: ""
161
-
MacroBlockEnd: ""
162
-
# Set to a large number to effectively disable
163
-
MaxEmptyLinesToKeep: 100000
164
-
NamespaceIndentation: None
165
-
NamespaceMacros: []
166
-
# Objective C-specific
167
-
#ObjCBinPackProtocolList:
168
-
#ObjCBlockIndentWidth:
169
-
#ObjCBreakBeforeNestedBlockParam:
170
-
#ObjCSpaceAfterProperty:
171
-
#ObjCSpaceBeforeProtocolList
172
-
PenaltyBreakAssignment: 1
173
-
PenaltyBreakBeforeFirstCallParameter: 1
174
-
PenaltyBreakComment: 1
175
-
PenaltyBreakFirstLessLess: 1
176
-
PenaltyBreakString: 1
177
-
PenaltyBreakTemplateDeclaration: 1
178
-
PenaltyExcessCharacter: 1
179
-
PenaltyReturnTypeOnItsOwnLine: 1
180
-
# Used as a fallback if alignment style can't be detected from code (DerivePointerAlignment: true)
181
-
PointerAlignment: Right
182
-
RawStringFormats: []
183
-
ReflowComments: false
184
-
SortIncludes: false
185
-
SortUsingDeclarations: false
186
-
SpaceAfterCStyleCast: false
187
-
SpaceAfterLogicalNot: false
188
-
SpaceAfterTemplateKeyword: false
189
-
SpaceBeforeAssignmentOperators: true
190
-
SpaceBeforeCpp11BracedList: false
191
-
SpaceBeforeCtorInitializerColon: true
192
-
SpaceBeforeInheritanceColon: true
193
-
SpaceBeforeParens: ControlStatements
194
-
SpaceBeforeRangeBasedForLoopColon: true
195
-
SpaceBeforeSquareBrackets: false
196
-
SpaceInEmptyBlock: false
197
-
SpaceInEmptyParentheses: false
198
-
SpacesBeforeTrailingComments: 2
199
-
SpacesInAngles: false
200
-
SpacesInCStyleCastParentheses: false
201
-
SpacesInConditionalStatement: false
202
-
SpacesInContainerLiterals: false
203
-
SpacesInParentheses: false
204
-
SpacesInSquareBrackets: false
205
-
Standard: Auto
206
-
StatementMacros: []
207
-
TabWidth: 2
208
-
TypenameMacros: []
209
-
# Default to LF if line endings can't be detected from the content (DeriveLineEnding).
210
-
UseCRLF: false
211
-
UseTab: Never
212
-
WhitespaceSensitiveMacros: []
213
-
```
68
+
***Please note that the custom configuration file completely overrides the Arduino default configuration, rather than merging with it. Any configuration option you don't set in your custom file will be set to the ClangFormat default value.***
0 commit comments