34 references to FormattingOptions
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1467var changedValue = FormattingOptions.IndentStyle.Block;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Formatting\InferredIndentationTests.cs (1)
28Assert.Equal(FormattingOptions.UseTabs.DefaultValue, options.UseTabs);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (4)
Editor\AutoFormattingOptionsWrapper.cs (2)
20public FormattingOptions.IndentStyle IndentStyle 21=> (FormattingOptions.IndentStyle)_indentStyle;
Editor\IFSharpIndentationService.cs (1)
67internal readonly record struct FSharpIndentationOptions(int TabSize, FormattingOptions.IndentStyle IndentStyle);
Internal\Editor\FSharpSmartIndentProvider.cs (1)
92IndentStyle: (FormattingOptions.IndentStyle)indentStyle);
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
RazorCSharpFormattingInteractionService.cs (1)
38FormattingOptions.IndentStyle indentStyle,
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeCleanup\CodeCleanupOptions.cs (3)
16[DataMember] public required SyntaxFormattingOptions FormattingOptions { get; init; } 24SeparateImportDirectiveGroups = FormattingOptions.SeparateImportDirectiveGroups, 26NewLine = FormattingOptions.LineFormatting.NewLine,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
15using PublicIndentStyle = Microsoft.CodeAnalysis.Formatting.FormattingOptions.IndentStyle;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (6)
Options\OptionsTestHelpers.cs (6)
29(FormattingOptions.SmartIndent, FormattingOptions.IndentStyle.Block)); 32(FormattingOptions.UseTabs, true), 33(FormattingOptions.TabSize, 5), 34(FormattingOptions.IndentationSize, 7), 35(FormattingOptions.NewLine, "\r"),
Microsoft.CodeAnalysis.Workspaces.UnitTests (15)
Formatter\FormatterTests.cs (9)
73WithChangedOption(new OptionKey(FormattingOptions.UseTabs, NoCompilationConstants.LanguageName), false). 74WithChangedOption(new OptionKey(FormattingOptions.TabSize, NoCompilationConstants.LanguageName), 1). 75WithChangedOption(new OptionKey(FormattingOptions.IndentationSize, NoCompilationConstants.LanguageName), 7). 76WithChangedOption(new OptionKey(FormattingOptions.NewLine, NoCompilationConstants.LanguageName), "\n"); 82Assert.Equal(7, documentOptions.GetOption(FormattingOptions.IndentationSize)); 86Add(new OptionKey(FormattingOptions.UseTabs, NoCompilationConstants.LanguageName), true). 87Add(new OptionKey(FormattingOptions.TabSize, NoCompilationConstants.LanguageName), 5). 88Add(new OptionKey(FormattingOptions.IndentationSize, NoCompilationConstants.LanguageName), 6). 89Add(new OptionKey(FormattingOptions.NewLine, NoCompilationConstants.LanguageName), "\r")) : null;
Options\OptionKeyTests.cs (3)
144var option3 = new PerLanguageOption<bool>("FormattingOptions", "UseTabs", FormattingOptions.UseTabs.DefaultValue); 148Assert.False(FormattingOptions.UseTabs.Equals(option3)); 149Assert.False(option3.Equals(FormattingOptions.UseTabs));
SolutionTests\SolutionTests.cs (2)
5390var option = FormattingOptions.UseTabs; 5524Assert.Equal(appliedToDocument, documentOptions.GetOption(FormattingOptions.UseTabs));
WorkspaceServiceTests\GlobalOptionServiceTests.cs (1)
97var perLanguageOptionKey = new OptionKey(FormattingOptions.NewLine, "lang");
Roslyn.VisualStudio.Next.UnitTests (2)
Services\SolutionServiceTests.cs (2)
497.WithChangedOption(FormattingOptions.NewLine, LanguageNames.CSharp, newOptionValue) 498.WithChangedOption(FormattingOptions.NewLine, LanguageNames.VisualBasic, newOptionValue));