31 references to FormattingOptions2
Microsoft.CodeAnalysis.CodeStyle (14)
AbstractIndentation.cs (1)
19protected abstract AbstractFormattingRule GetSpecializedIndentationFormattingRule(FormattingOptions2.IndentStyle indentStyle);
AbstractIndentation.Indenter.cs (4)
70public IndentationResult? GetDesiredIndentation(FormattingOptions2.IndentStyle indentStyle) 73if (indentStyle == FormattingOptions2.IndentStyle.None) 78if (indentStyle == FormattingOptions2.IndentStyle.Block || 84Debug.Assert(indentStyle == FormattingOptions2.IndentStyle.Smart);
DocumentFormattingOptions.cs (1)
41InsertFinalNewLine = options.GetOption(FormattingOptions2.InsertFinalNewLine, fallbackOptions.InsertFinalNewLine)
FormattingOptions2.cs (1)
13using PublicIndentStyle = Microsoft.CodeAnalysis.Formatting.FormattingOptions2.IndentStyle;
IndentationOptions.cs (3)
19[DataMember(Order = 2)] public FormattingOptions2.IndentStyle IndentStyle { get; init; } = DefaultIndentStyle; 21public const FormattingOptions2.IndentStyle DefaultIndentStyle = FormattingOptions2.IndentStyle.Smart;
LineFormattingOptions.cs (4)
40UseTabs = options.GetOption(FormattingOptions2.UseTabs, language, fallbackOptions.UseTabs), 41TabSize = options.GetOption(FormattingOptions2.TabSize, language, fallbackOptions.TabSize), 42IndentationSize = options.GetOption(FormattingOptions2.IndentationSize, language, fallbackOptions.IndentationSize), 43NewLine = options.GetOption(FormattingOptions2.NewLine, language, fallbackOptions.NewLine),
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
AbstractIndentationService.cs (2)
24if (indentStyle == FormattingOptions2.IndentStyle.None) 32if (indentStyle == FormattingOptions2.IndentStyle.Smart &&
CodeFixOptionsProvider.cs (1)
49public string NewLine => GetOption(FormattingOptions2.NewLine, FallbackLineFormattingOptions.NewLine);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
CSharpSmartTokenFormatter.cs (1)
110_options.IndentStyle != FormattingOptions2.IndentStyle.Smart)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
CSharpCodeFixOptionsProvider.cs (1)
53public string NewLine => GetOption(FormattingOptions2.NewLine, FallbackLineFormattingOptions.NewLine);
CSharpIndentationService.cs (2)
44protected override AbstractFormattingRule GetSpecializedIndentationFormattingRule(FormattingOptions2.IndentStyle indentStyle) 63if (options.IndentStyle != FormattingOptions2.IndentStyle.Smart)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (3)
FileHeaderTests.cs (1)
86{ FormattingOptions2.NewLine, lineEnding },
UseAutoPropertyTests.cs (2)
2672""", new TestParameters(options: Option(FormattingOptions2.UseTabs, true))); 2692""", new TestParameters(options: Option(FormattingOptions2.UseTabs, false)));
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (4)
SpecialFormattingOperation.vb (3)
15Private ReadOnly _indentStyle As FormattingOptions2.IndentStyle 17Public Sub New(indentStyle As FormattingOptions2.IndentStyle) 172If _indentStyle <> FormattingOptions2.IndentStyle.Smart Then
VisualBasicIndentationService.vb (1)
35Protected Overrides Function GetSpecializedIndentationFormattingRule(indentStyle As FormattingOptions2.IndentStyle) As AbstractFormattingRule
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (3)
FileHeaderTests.vb (1)
73test.Options.Add(FormattingOptions2.NewLine, lineEnding)
UseAutoPropertyTests.vb (2)
1104End Class", options:=[Option](FormattingOptions2.UseTabs, True)) 1121End Class", options:=[Option](FormattingOptions2.UseTabs, False))