29 references to FormattingOptions2
Microsoft.CodeAnalysis.Workspaces (29)
Formatting\FormattingOptions.cs (11)
11/// <inheritdoc cref="FormattingOptions2"/> 14/// <inheritdoc cref="FormattingOptions2.UseTabs"/> 15public static PerLanguageOption<bool> UseTabs { get; } = FormattingOptions2.UseTabs.ToPublicOption(); 17/// <inheritdoc cref="FormattingOptions2.TabSize"/> 18public static PerLanguageOption<int> TabSize { get; } = FormattingOptions2.TabSize.ToPublicOption(); 20/// <inheritdoc cref="FormattingOptions2.IndentationSize"/> 21public static PerLanguageOption<int> IndentationSize { get; } = FormattingOptions2.IndentationSize.ToPublicOption(); 23/// <inheritdoc cref="FormattingOptions2.NewLine"/> 24public static PerLanguageOption<string> NewLine { get; } = FormattingOptions2.NewLine.ToPublicOption(); 26/// <inheritdoc cref="FormattingOptions2.IndentStyle"/> 27public static PerLanguageOption<IndentStyle> SmartIndent { get; } = (PerLanguageOption<IndentStyle>)FormattingOptions2.SmartIndent.PublicOption!;
OrganizeImports\OrganizeImportsOptionsProviders.cs (1)
20NewLine = options.GetOption(FormattingOptions2.NewLine, language)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\LineFormattingOptions.cs (4)
24UseTabs = options.GetOption(FormattingOptions2.UseTabs, language); 25TabSize = options.GetOption(FormattingOptions2.TabSize, language); 26IndentationSize = options.GetOption(FormattingOptions2.IndentationSize, language); 27NewLine = options.GetOption(FormattingOptions2.NewLine, language);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\SyntaxFormattingOptions.cs (2)
34WrappingColumn = options.GetOption(FormattingOptions2.WrappingColumn, language); 35ConditionalExpressionWrappingLength = options.GetOption(FormattingOptions2.ConditionalExpressionWrappingLength, language);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.cs (1)
19protected abstract AbstractFormattingRule GetSpecializedIndentationFormattingRule(FormattingOptions2.IndentStyle indentStyle);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (4)
71public IndentationResult? GetDesiredIndentation(FormattingOptions2.IndentStyle indentStyle) 74if (indentStyle == FormattingOptions2.IndentStyle.None) 79if (indentStyle == FormattingOptions2.IndentStyle.Block || 85Debug.Assert(indentStyle == FormattingOptions2.IndentStyle.Smart);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\IndentationOptions.cs (3)
15[DataMember(Order = 2)] public FormattingOptions2.IndentStyle IndentStyle { get; init; } = DefaultIndentStyle; 17public const FormattingOptions2.IndentStyle DefaultIndentStyle = FormattingOptions2.IndentStyle.Smart;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\DocumentFormattingOptionsProviders.cs (1)
19InsertFinalNewLine = options.GetOption(FormattingOptions2.InsertFinalNewLine)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (2)
24if (indentStyle == FormattingOptions2.IndentStyle.None) 32if (indentStyle == FormattingOptions2.IndentStyle.Smart &&