如何安裝請參考
http://blog.csdn.net/zcube/article/details/50546845
配置示例
#訪問修飾符偏移量
#AccessModifierOffset: 0
# @public
# NSMutableArray *_cellHeightArray;
#AccessModifierOffset: 4
# @public
# NSMutableArray *_cellHeightArray;
AccessModifierOffset: 0
#如果是true就是左對齊,如果是false就是右對齊
# true
# if (foo && // Some comment
# bar) {
# baz();
# }
#
#void foo() {
# someFunction();
# someOtherFunction();
#}
#-----------------------------
#false
#if (foo && // Some Comment
# bar) {
# baz();
#}
#
#void foo() {
# someFunction();
# someOtherFunction();
#}
AlignEscapedNewlinesLeft: true
#注釋的對齊方式 如果是true將左對齊,如果是false不會對齊
AlignTrailingComments: false
#函數(shù)多個參數(shù)的對齊方式,如果TRUE就讓參數(shù)上下對齊 否則將是默認
AllowAllParametersOfDeclarationOnNextLine: false
#是否允許方法單行
AllowShortFunctionsOnASingleLine: false
#是否允許if單行
AllowShortIfStatementsOnASingleLine: false
#是否允許循環(huán)單行
AllowShortLoopsOnASingleLine: false
#在多行字符串之前總是打破(對齊)
AlwaysBreakBeforeMultilineStrings: false
#總是打破模板聲明
AlwaysBreakTemplateDeclarations: false
#如果為 false,函數(shù)調用或函數(shù)定義的參數(shù)將會都是在同一行上或者會有一行每個。
BinPackParameters: false
#如果為 true,則將換行符后放置二元運算符。
BreakBeforeBinaryOperators: false
#大括號使用的樣式
BreakBeforeBraces: Allman
#如果為 true,則將換行符后放置三元運算符。
BreakBeforeTernaryOperators: false
#總是打破在逗號之前的構造函數(shù)初始值設定項和對齊以冒號逗號。
BreakConstructorInitializersBeforeComma: false
#每一行限制字符的長度
ColumnLimit: 120
CommentPragmas: ''
#如果在構造函數(shù)初始值設定項不適合在一條線,把每個初始值設定項放在自己的行上。
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 0
ContinuationIndentWidth: 0
Cpp11BracedListStyle: false
DerivePointerBinding: false
#switch case的縮進
IndentCaseLabels: true
IndentFunctionDeclarationAfterType: false
IndentWidth: 4
Language: Cpp
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 100
PenaltyBreakComment: 100
PenaltyBreakFirstLessLess: 0
PenaltyBreakString: 100
PenaltyExcessCharacter: 1
PenaltyReturnTypeOnItsOwnLine: 20
PointerBindsToType: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: Always
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
Standard: Cpp11
TabWidth: 4
UseTab: Never