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,