vscode代码格式

touch .clang-format

#加入以下内容
BasedOnStyle: 'Google'
BreakBeforeBraces: 'Custom'
BraceWrapping:
    AfterClass: 'false'
    AfterControlStatement: 'false'
    AfterEnum: 'false'
    AfterFunction: 'true'
    AfterNamespace: 'false'
    AfterObjCDeclaration: 'false'
    AfterStruct: 'false'
    AfterUnion: 'false'
    BeforeCatch: 'false'
    BeforeElse: 'false'
    IndentBraces: 'false'
AccessModifierOffset: '-4'
AlignConsecutiveMacros: 'true'
AlwaysBreakTemplateDeclarations: 'Yes'
BinPackArguments: 'true'
BinPackParameters: 'true'
ColumnLimit: '80'
ContinuationIndentWidth: '4'
DerivePointerAlignment: 'false'
IndentWidth: '4'
SortIncludes: 'false'
Standard: 'Cpp11'
TabWidth: '4'
UseTab: 'Never'
IndentCaseLabels: 'false'
AlignAfterOpenBracket: Align
AlignEscapedNewlines: Left
AlignOperands: 'true'
AlignTrailingComments: 'true'
AllowAllArgumentsOnNextLine: 'false'
AllowAllParametersOfDeclarationOnNextLine: 'false'
AllowShortBlocksOnASingleLine: 'false'
AllowShortCaseLabelsOnASingleLine: 'false'
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: None
AllowShortLoopsOnASingleLine: 'false'
BreakBeforeBinaryOperators: None
IncludeBlocks: Regroup
Language: Cpp
SpaceAfterCStyleCast: 'false'
SpaceBeforeAssignmentOperators: 'true'
SpacesInCStyleCastParentheses: 'false'
SpacesInContainerLiterals: 'false'
SpacesInParentheses: 'false'
SpacesInSquareBrackets: 'false'
PointerAlignment: 'Right'
MaxEmptyLinesToKeep: 1
CompactNamespaces: 'false'

你可能感兴趣的:(vscode,前端,linux)