diff options
Diffstat (limited to 'main/src/addins/CSharpBinding/MonoDevelop.CSharp.Formatting/policies/MonoCSharpPolicy.xml')
-rw-r--r-- | main/src/addins/CSharpBinding/MonoDevelop.CSharp.Formatting/policies/MonoCSharpPolicy.xml | 180 |
1 files changed, 44 insertions, 136 deletions
diff --git a/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Formatting/policies/MonoCSharpPolicy.xml b/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Formatting/policies/MonoCSharpPolicy.xml index 9924d6f2c3..1a9b87ab52 100644 --- a/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Formatting/policies/MonoCSharpPolicy.xml +++ b/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Formatting/policies/MonoCSharpPolicy.xml @@ -27,140 +27,48 @@ THE SOFTWARE. --> <CSharpFormattingPolicy scope="text/x-csharp" allowDiffSerialize="True"> - <IndentNamespaceBody>True</IndentNamespaceBody> - <IndentClassBody>True</IndentClassBody> - <IndentInterfaceBody>True</IndentInterfaceBody> - <IndentStructBody>True</IndentStructBody> - <IndentEnumBody>True</IndentEnumBody> - <IndentMethodBody>True</IndentMethodBody> - <IndentPropertyBody>True</IndentPropertyBody> - <IndentEventBody>True</IndentEventBody> - <IndentBlocks>True</IndentBlocks> - <IndentSwitchBody>False</IndentSwitchBody> - <IndentCaseBody>True</IndentCaseBody> - <IndentBreakStatements>True</IndentBreakStatements> - <AlignEmbeddedStatements>True</AlignEmbeddedStatements> - <SimplePropertyFormatting>AllowOneLine</SimplePropertyFormatting> - <AutoPropertyFormatting>AllowOneLine</AutoPropertyFormatting> - <NamespaceBraceStyle>NextLine</NamespaceBraceStyle> - <ClassBraceStyle>NextLine</ClassBraceStyle> - <InterfaceBraceStyle>NextLine</InterfaceBraceStyle> - <StructBraceStyle>NextLine</StructBraceStyle> - <EnumBraceStyle>NextLine</EnumBraceStyle> - <MethodBraceStyle>NextLine</MethodBraceStyle> - <AnonymousMethodBraceStyle>EndOfLine</AnonymousMethodBraceStyle> - <ConstructorBraceStyle>NextLine</ConstructorBraceStyle> - <DestructorBraceStyle>NextLine</DestructorBraceStyle> - <PropertyBraceStyle>EndOfLine</PropertyBraceStyle> - <PropertyGetBraceStyle>EndOfLine</PropertyGetBraceStyle> - <PropertySetBraceStyle>EndOfLine</PropertySetBraceStyle> - <SimpleGetBlockFormatting>AllowOneLine</SimpleGetBlockFormatting> - <SimpleSetBlockFormatting>AllowOneLine</SimpleSetBlockFormatting> - <EventBraceStyle>EndOfLine</EventBraceStyle> - <EventAddBraceStyle>EndOfLine</EventAddBraceStyle> - <EventRemoveBraceStyle>EndOfLine</EventRemoveBraceStyle> - <AllowEventAddBlockInline>True</AllowEventAddBlockInline> - <AllowEventRemoveBlockInline>True</AllowEventRemoveBlockInline> - <StatementBraceStyle>EndOfLine</StatementBraceStyle> - <AllowIfBlockInline>False</AllowIfBlockInline> - <ElseNewLinePlacement>SameLine</ElseNewLinePlacement> - <ElseIfNewLinePlacement>SameLine</ElseIfNewLinePlacement> - <CatchNewLinePlacement>SameLine</CatchNewLinePlacement> - <FinallyNewLinePlacement>SameLine</FinallyNewLinePlacement> - <WhileNewLinePlacement>SameLine</WhileNewLinePlacement> - <ArrayInitializerWrapping>WrapIfTooLong</ArrayInitializerWrapping> - <ArrayInitializerBraceStyle>EndOfLine</ArrayInitializerBraceStyle> - <KeepCommentsAtFirstColumn>True</KeepCommentsAtFirstColumn> - <BeforeMethodDeclarationParentheses>True</BeforeMethodDeclarationParentheses> - <BetweenEmptyMethodDeclarationParentheses>False</BetweenEmptyMethodDeclarationParentheses> - <BeforeMethodDeclarationParameterComma>False</BeforeMethodDeclarationParameterComma> - <AfterMethodDeclarationParameterComma>True</AfterMethodDeclarationParameterComma> - <WithinMethodDeclarationParentheses>False</WithinMethodDeclarationParentheses> - <BeforeMethodCallParentheses>True</BeforeMethodCallParentheses> - <BetweenEmptyMethodCallParentheses>False</BetweenEmptyMethodCallParentheses> - <BeforeMethodCallParameterComma>False</BeforeMethodCallParameterComma> - <AfterMethodCallParameterComma>True</AfterMethodCallParameterComma> - <WithinMethodCallParentheses>False</WithinMethodCallParentheses> - <BeforeFieldDeclarationComma>False</BeforeFieldDeclarationComma> - <AfterFieldDeclarationComma>True</AfterFieldDeclarationComma> - <BeforeLocalVariableDeclarationComma>False</BeforeLocalVariableDeclarationComma> - <AfterLocalVariableDeclarationComma>True</AfterLocalVariableDeclarationComma> - <BeforeConstructorDeclarationParentheses>True</BeforeConstructorDeclarationParentheses> - <BetweenEmptyConstructorDeclarationParentheses>False</BetweenEmptyConstructorDeclarationParentheses> - <BeforeConstructorDeclarationParameterComma>False</BeforeConstructorDeclarationParameterComma> - <AfterConstructorDeclarationParameterComma>True</AfterConstructorDeclarationParameterComma> - <WithinConstructorDeclarationParentheses>False</WithinConstructorDeclarationParentheses> - <NewLineBeforeConstructorInitializerColon>DoNotCare</NewLineBeforeConstructorInitializerColon> - <NewLineAfterConstructorInitializerColon>DoNotCare</NewLineAfterConstructorInitializerColon> - <BeforeIndexerDeclarationBracket>True</BeforeIndexerDeclarationBracket> - <WithinIndexerDeclarationBracket>False</WithinIndexerDeclarationBracket> - <BeforeIndexerDeclarationParameterComma>False</BeforeIndexerDeclarationParameterComma> - <AfterIndexerDeclarationParameterComma>True</AfterIndexerDeclarationParameterComma> - <BeforeDelegateDeclarationParentheses>True</BeforeDelegateDeclarationParentheses> - <BetweenEmptyDelegateDeclarationParentheses>False</BetweenEmptyDelegateDeclarationParentheses> - <BeforeDelegateDeclarationParameterComma>False</BeforeDelegateDeclarationParameterComma> - <AfterDelegateDeclarationParameterComma>False</AfterDelegateDeclarationParameterComma> - <WithinDelegateDeclarationParentheses>False</WithinDelegateDeclarationParentheses> - <NewParentheses>True</NewParentheses> - <IfParentheses>True</IfParentheses> - <WhileParentheses>True</WhileParentheses> - <ForParentheses>True</ForParentheses> - <ForeachParentheses>True</ForeachParentheses> - <CatchParentheses>True</CatchParentheses> - <SwitchParentheses>True</SwitchParentheses> - <LockParentheses>True</LockParentheses> - <UsingParentheses>True</UsingParentheses> - <AroundAssignmentParentheses>True</AroundAssignmentParentheses> - <AroundLogicalOperatorParentheses>True</AroundLogicalOperatorParentheses> - <AroundEqualityOperatorParentheses>True</AroundEqualityOperatorParentheses> - <AroundRelationalOperatorParentheses>True</AroundRelationalOperatorParentheses> - <AroundBitwiseOperatorParentheses>True</AroundBitwiseOperatorParentheses> - <AroundAdditiveOperatorParentheses>True</AroundAdditiveOperatorParentheses> - <AroundMultiplicativeOperatorParentheses>True</AroundMultiplicativeOperatorParentheses> - <AroundShiftOperatorParentheses>True</AroundShiftOperatorParentheses> - <AroundNullCoalescingOperator>True</AroundNullCoalescingOperator> - <WithinParentheses>False</WithinParentheses> - <WithinIfParentheses>False</WithinIfParentheses> - <WithinWhileParentheses>False</WithinWhileParentheses> - <WithinForParentheses>False</WithinForParentheses> - <WithinForEachParentheses>False</WithinForEachParentheses> - <WithinCatchParentheses>False</WithinCatchParentheses> - <WithinSwitchParentheses>False</WithinSwitchParentheses> - <WithinLockParentheses>False</WithinLockParentheses> - <WithinUsingParentheses>False</WithinUsingParentheses> - <WithinCastParentheses>False</WithinCastParentheses> - <WithinSizeOfParentheses>False</WithinSizeOfParentheses> - <BeforeSizeOfParentheses>False</BeforeSizeOfParentheses> - <WithinTypeOfParentheses>False</WithinTypeOfParentheses> - <WithinNewParentheses>False</WithinNewParentheses> - <BetweenEmptyNewParentheses>False</BetweenEmptyNewParentheses> - <BeforeNewParameterComma>False</BeforeNewParameterComma> - <AfterNewParameterComma>True</AfterNewParameterComma> - <BeforeTypeOfParentheses>False</BeforeTypeOfParentheses> - <WithinCheckedExpressionParantheses>False</WithinCheckedExpressionParantheses> - <ConditionalOperatorBeforeConditionSpace>True</ConditionalOperatorBeforeConditionSpace> - <ConditionalOperatorAfterConditionSpace>True</ConditionalOperatorAfterConditionSpace> - <ConditionalOperatorBeforeSeparatorSpace>True</ConditionalOperatorBeforeSeparatorSpace> - <ConditionalOperatorAfterSeparatorSpace>True</ConditionalOperatorAfterSeparatorSpace> - <SpacesWithinBrackets>False</SpacesWithinBrackets> - <SpacesBeforeBrackets>True</SpacesBeforeBrackets> - <BeforeBracketComma>False</BeforeBracketComma> - <AfterBracketComma>True</AfterBracketComma> - <SpacesBeforeForSemicolon>False</SpacesBeforeForSemicolon> - <SpacesAfterForSemicolon>True</SpacesAfterForSemicolon> - <SpacesAfterTypecast>False</SpacesAfterTypecast> - <SpacesBeforeArrayDeclarationBrackets>False</SpacesBeforeArrayDeclarationBrackets> - <BlankLinesBeforeUsings>0</BlankLinesBeforeUsings> - <BlankLinesAfterUsings>1</BlankLinesAfterUsings> - <BlankLinesBeforeFirstDeclaration>0</BlankLinesBeforeFirstDeclaration> - <BlankLinesBetweenTypes>1</BlankLinesBetweenTypes> - <BlankLinesBetweenFields>0</BlankLinesBetweenFields> - <BlankLinesBetweenEventFields>0</BlankLinesBetweenEventFields> - <BlankLinesBetweenMembers>1</BlankLinesBetweenMembers> - <BlankLinesInsideRegion>1</BlankLinesInsideRegion> - <BlankLinesAroundRegion>1</BlankLinesAroundRegion> - <IndentPreprocessorDirectives>True</IndentPreprocessorDirectives> - <AlignToFirstIndexerArgument>False</AlignToFirstIndexerArgument> - <AlignToFirstMethodCallArgument>False</AlignToFirstMethodCallArgument> - <IndentBlocksInsideExpressions>False</IndentBlocksInsideExpressions> + <IndentBlock>True</IndentBlock> + <IndentBraces>False</IndentBraces> + <IndentSwitchSection>False</IndentSwitchSection> + <IndentSwitchCaseSection>True</IndentSwitchCaseSection> + <LabelPositioning>OneLess</LabelPositioning> + <NewLinesForBracesInTypes>True</NewLinesForBracesInTypes> + <NewLinesForBracesInMethods>True</NewLinesForBracesInMethods> + <NewLinesForBracesInAnonymousMethods>False</NewLinesForBracesInAnonymousMethods> + <NewLinesForBracesInControlBlocks>False</NewLinesForBracesInControlBlocks> + <NewLinesForBracesInAnonymousTypes>False</NewLinesForBracesInAnonymousTypes> + <NewLinesForBracesInObjectInitializers>False</NewLinesForBracesInObjectInitializers> + <NewLinesForBracesInLambdaExpressionBody>False</NewLinesForBracesInLambdaExpressionBody> + <NewLineForElse>False</NewLineForElse> + <NewLineForCatch>False</NewLineForCatch> + <NewLineForFinally>False</NewLineForFinally> + <NewLineForMembersInObjectInit>False</NewLineForMembersInObjectInit> + <NewLineForMembersInAnonymousTypes>False</NewLineForMembersInAnonymousTypes> + <NewLineForClausesInQuery>False</NewLineForClausesInQuery> + <SpacingAfterMethodDeclarationName>True</SpacingAfterMethodDeclarationName> + <SpaceWithinMethodDeclarationParenthesis>False</SpaceWithinMethodDeclarationParenthesis> + <SpaceBetweenEmptyMethodDeclarationParentheses>False</SpaceBetweenEmptyMethodDeclarationParentheses> + <SpaceAfterMethodCallName>True</SpaceAfterMethodCallName> + <SpaceWithinMethodCallParentheses>False</SpaceWithinMethodCallParentheses> + <SpaceBetweenEmptyMethodCallParentheses>False</SpaceBetweenEmptyMethodCallParentheses> + <SpaceAfterControlFlowStatementKeyword>True</SpaceAfterControlFlowStatementKeyword> + <SpaceWithinExpressionParentheses>False</SpaceWithinExpressionParentheses> + <SpaceWithinCastParentheses>False</SpaceWithinCastParentheses> + <SpaceWithinOtherParentheses>False</SpaceWithinOtherParentheses> + <SpaceAfterCast>False</SpaceAfterCast> + <SpacesIgnoreAroundVariableDeclaration>False</SpacesIgnoreAroundVariableDeclaration> + <SpaceBeforeOpenSquareBracket>True</SpaceBeforeOpenSquareBracket> + <SpaceBetweenEmptySquareBrackets>False</SpaceBetweenEmptySquareBrackets> + <SpaceWithinSquareBrackets>False</SpaceWithinSquareBrackets> + <SpaceAfterColonInBaseTypeDeclaration>True</SpaceAfterColonInBaseTypeDeclaration> + <SpaceAfterComma>True</SpaceAfterComma> + <SpaceAfterDot>False</SpaceAfterDot> + <SpaceAfterSemicolonsInForStatement>True</SpaceAfterSemicolonsInForStatement> + <SpaceBeforeColonInBaseTypeDeclaration>True</SpaceBeforeColonInBaseTypeDeclaration> + <SpaceBeforeComma>False</SpaceBeforeComma> + <SpaceBeforeDot>False</SpaceBeforeDot> + <SpaceBeforeSemicolonsInForStatement>False</SpaceBeforeSemicolonsInForStatement> + <SpacingAroundBinaryOperator>Single</SpacingAroundBinaryOperator> + <WrappingPreserveSingleLine>True</WrappingPreserveSingleLine> + <WrappingKeepStatementsOnSingleLine>True</WrappingKeepStatementsOnSingleLine> </CSharpFormattingPolicy>
\ No newline at end of file |