Browse Source

[Formatting] Set wrap options to do not change.

newNRvisualizers
Mike Krüger 14 years ago
parent
commit
2786d0c49f
  1. 20
      ICSharpCode.NRefactory.CSharp/Formatter/FormattingOptionsFactory.cs

20
ICSharpCode.NRefactory.CSharp/Formatter/FormattingOptionsFactory.cs

@ -43,9 +43,9 @@ namespace ICSharpCode.NRefactory.CSharp
/// <summary> /// <summary>
/// Creates mono indent style CSharpFormatting options. /// Creates mono indent style CSharpFormatting options.
/// </summary> /// </summary>
public static CSharpFormattingOptions CreateMono() public static CSharpFormattingOptions CreateMono ()
{ {
return new CSharpFormattingOptions() { return new CSharpFormattingOptions () {
IndentNamespaceBody = true, IndentNamespaceBody = true,
IndentClassBody = true, IndentClassBody = true,
IndentInterfaceBody = true, IndentInterfaceBody = true,
@ -175,12 +175,12 @@ namespace ICSharpCode.NRefactory.CSharp
BlankLinesBetweenMembers = 1, BlankLinesBetweenMembers = 1,
KeepCommentsAtFirstColumn = true, KeepCommentsAtFirstColumn = true,
ChainedMethodCallWrapping = Wrapping.WrapIfTooLong, ChainedMethodCallWrapping = Wrapping.DoNotChange,
MethodCallArgumentWrapping = Wrapping.WrapIfTooLong, MethodCallArgumentWrapping = Wrapping.DoNotChange,
NewLineAferMethodCallOpenParentheses = true, NewLineAferMethodCallOpenParentheses = true,
MethodCallClosingParenthesesOnNewLine = true, MethodCallClosingParenthesesOnNewLine = true,
IndexerArgumentWrapping = Wrapping.WrapIfTooLong, IndexerArgumentWrapping = Wrapping.DoNotChange,
NewLineAferIndexerOpenBracket = false, NewLineAferIndexerOpenBracket = false,
IndexerClosingBracketOnNewLine = 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, /// 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. /// is commonly used in C. It is less common for C++, C#, and others.
/// </summary> /// </summary>
public static CSharpFormattingOptions CreateKRStyle() public static CSharpFormattingOptions CreateKRStyle ()
{ {
return new CSharpFormattingOptions() { return new CSharpFormattingOptions () {
IndentNamespaceBody = true, IndentNamespaceBody = true,
IndentClassBody = true, IndentClassBody = true,
IndentInterfaceBody = true, IndentInterfaceBody = true,
@ -344,12 +344,12 @@ namespace ICSharpCode.NRefactory.CSharp
BlankLinesBetweenMembers = 1, BlankLinesBetweenMembers = 1,
KeepCommentsAtFirstColumn = true, KeepCommentsAtFirstColumn = true,
ChainedMethodCallWrapping = Wrapping.WrapIfTooLong, ChainedMethodCallWrapping = Wrapping.DoNotChange,
MethodCallArgumentWrapping = Wrapping.WrapIfTooLong, MethodCallArgumentWrapping = Wrapping.DoNotChange,
NewLineAferMethodCallOpenParentheses = true, NewLineAferMethodCallOpenParentheses = true,
MethodCallClosingParenthesesOnNewLine = true, MethodCallClosingParenthesesOnNewLine = true,
IndexerArgumentWrapping = Wrapping.WrapIfTooLong, IndexerArgumentWrapping = Wrapping.DoNotChange,
NewLineAferIndexerOpenBracket = false, NewLineAferIndexerOpenBracket = false,
IndexerClosingBracketOnNewLine = false, IndexerClosingBracketOnNewLine = false,

Loading…
Cancel
Save