From 2786d0c49fd98665ba94aa5852000df5c8329cd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Kr=C3=BCger?= Date: Wed, 23 May 2012 23:07:00 +0200 Subject: [PATCH] [Formatting] Set wrap options to do not change. --- .../Formatter/FormattingOptionsFactory.cs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ICSharpCode.NRefactory.CSharp/Formatter/FormattingOptionsFactory.cs b/ICSharpCode.NRefactory.CSharp/Formatter/FormattingOptionsFactory.cs index 99a86ed6f3..9b8e13dca7 100644 --- a/ICSharpCode.NRefactory.CSharp/Formatter/FormattingOptionsFactory.cs +++ b/ICSharpCode.NRefactory.CSharp/Formatter/FormattingOptionsFactory.cs @@ -43,9 +43,9 @@ namespace ICSharpCode.NRefactory.CSharp /// /// Creates mono indent style CSharpFormatting options. /// - public static CSharpFormattingOptions CreateMono() + public static CSharpFormattingOptions CreateMono () { - return new CSharpFormattingOptions() { + return new CSharpFormattingOptions () { IndentNamespaceBody = true, IndentClassBody = true, IndentInterfaceBody = true, @@ -175,12 +175,12 @@ namespace ICSharpCode.NRefactory.CSharp BlankLinesBetweenMembers = 1, KeepCommentsAtFirstColumn = true, - ChainedMethodCallWrapping = Wrapping.WrapIfTooLong, - MethodCallArgumentWrapping = Wrapping.WrapIfTooLong, + ChainedMethodCallWrapping = Wrapping.DoNotChange, + MethodCallArgumentWrapping = Wrapping.DoNotChange, NewLineAferMethodCallOpenParentheses = true, MethodCallClosingParenthesesOnNewLine = true, - IndexerArgumentWrapping = Wrapping.WrapIfTooLong, + IndexerArgumentWrapping = Wrapping.DoNotChange, NewLineAferIndexerOpenBracket = false, IndexerClosingBracketOnNewLine = false, @@ -212,9 +212,9 @@ namespace ICSharpCode.NRefactory.CSharp /// The K&R style, so named because it was used in Kernighan and Ritchie's book The C Programming Language, /// is commonly used in C. It is less common for C++, C#, and others. /// - public static CSharpFormattingOptions CreateKRStyle() + public static CSharpFormattingOptions CreateKRStyle () { - return new CSharpFormattingOptions() { + return new CSharpFormattingOptions () { IndentNamespaceBody = true, IndentClassBody = true, IndentInterfaceBody = true, @@ -344,12 +344,12 @@ namespace ICSharpCode.NRefactory.CSharp BlankLinesBetweenMembers = 1, KeepCommentsAtFirstColumn = true, - ChainedMethodCallWrapping = Wrapping.WrapIfTooLong, - MethodCallArgumentWrapping = Wrapping.WrapIfTooLong, + ChainedMethodCallWrapping = Wrapping.DoNotChange, + MethodCallArgumentWrapping = Wrapping.DoNotChange, NewLineAferMethodCallOpenParentheses = true, MethodCallClosingParenthesesOnNewLine = true, - IndexerArgumentWrapping = Wrapping.WrapIfTooLong, + IndexerArgumentWrapping = Wrapping.DoNotChange, NewLineAferIndexerOpenBracket = false, IndexerClosingBracketOnNewLine = false,