9 writes to TabSize
Microsoft.AspNetCore.Razor.Microbenchmarks (1)
Formatting\DocumentFormattingBenchmark.cs (1)
95TabSize = 4,
Microsoft.CodeAnalysis.Razor.Workspaces (4)
Formatting\RazorFormattingOptions.cs (3)
35TabSize = options.TabSize, 44TabSize = options.TabSize, 54TabSize = options.TabSize,
Settings\ClientSettings.cs (1)
34TabSize = ClientSpaceSettings.IndentSize,
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (2)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingContentValidationPassTest.cs (1)
81TabSize = tabSize,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingDiagnosticValidationPassTest.cs (1)
80TabSize = tabSize,
Microsoft.VisualStudioCode.RazorExtension.UnitTests (2)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingContentValidationPassTest.cs (1)
81TabSize = tabSize,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingDiagnosticValidationPassTest.cs (1)
80TabSize = tabSize,
29 references to TabSize
Microsoft.CodeAnalysis.Razor.Workspaces (26)
CodeActions\Razor\GenerateEventHandlerCodeActionResolver.cs (5)
66var baseIndentation = text.Lines[classLocationLineSpan.StartLinePosition.Line].GetIndentationSize(options.TabSize) + options.TabSize; 151var eventHandlerIndentation = FormattingUtilities.GetIndentationString(baseIndentation, options.InsertSpaces, options.TabSize); 152var eventHandlerBodyIndentation = FormattingUtilities.GetIndentationString(baseIndentation + options.TabSize, options.InsertSpaces, options.TabSize);
CodeActions\Razor\WrapAttributesCodeActionResolver.cs (1)
29var indentationString = FormattingUtilities.GetIndentationString(actionParams.IndentSize, options.InsertSpaces, options.TabSize);
DocumentMapping\RazorEditService_Methods.cs (3)
168var currentIndentation = line.GetIndentationSize(options.TabSize); 184var newIndentation = options.TabSize + currentIndentation - initialIndentation.GetValueOrDefault(); 185builder.Append(FormattingUtilities.GetIndentationString(Math.Max(0, newIndentation), options.InsertSpaces, options.TabSize));
Formatting\CSharpFormatter.cs (1)
343offset *= (int)context.Options.TabSize;
Formatting\FormattingContext.cs (3)
85var existingIndentationSize = line.GetIndentationSize(Options.TabSize); 181var indentationString = FormattingUtilities.GetIndentationString(indentation, Options.InsertSpaces, Options.TabSize); 192return level * Options.TabSize;
Formatting\FormattingUtilities.cs (2)
448var indentationWidth = formattedLine.GetIndentationSize(context.Options.TabSize) + fixedIndentationWidth; 454return GetIndentationString(indentationWidth, context.Options.InsertSpaces, context.Options.TabSize);
Formatting\Passes\CSharpFormattingPass.CSharpDocumentGenerator.cs (1)
162private readonly int _tabSize = options.TabSize;
Formatting\Passes\CSharpOnTypeFormattingPass.cs (1)
844var effectiveDesiredIndentation = FormattingUtilities.GetIndentationString(indentation, context.Options.InsertSpaces, context.Options.TabSize);
Formatting\Passes\HtmlOnTypeFormattingPass.cs (1)
185var existingIndentationString = FormattingUtilities.GetIndentationString(indentations[i].ExistingIndentationSize, context.Options.InsertSpaces, context.Options.TabSize);
Formatting\Passes\RazorFormattingPass.cs (3)
275directive.GetLinePositionSpan(source).Start.Character, context.Options.InsertSpaces, context.Options.TabSize) 360directive.GetLinePositionSpan(source).Start.Character, context.Options.InsertSpaces, context.Options.TabSize); 434directiveNode.GetRange(source).Start.Character, context.Options.InsertSpaces, context.Options.TabSize);
Formatting\RazorFormattingOptions.cs (3)
64TabSize: TabSize, 65IndentationSize: TabSize); 71TabSize = TabSize,
Formatting\SnippetFormatter.cs (2)
41var csharpLineIndentationSize = line.GetIndentationSize(formattingContext.Options.TabSize); 42var csharpIndentationLevel = csharpLineIndentationSize / formattingContext.Options.TabSize;
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (2)
Cohost\Formatting\FormattingLogTest.cs (1)
99var edits = await GetFormattingEditsAsync(document, htmlEdits, span, options.CodeBlockBraceOnNextLine, options.AttributeIndentStyle, options.InsertSpaces, options.TabSize, options.CSharpSyntaxFormattingOptions.AssumeNotNull());
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\HtmlFormattingTest.cs (1)
691var edits = await GetFormattingEditsAsync(document, htmlEdits, span: default, options.CodeBlockBraceOnNextLine, attributeIndentStyle, options.InsertSpaces, options.TabSize, RazorCSharpSyntaxFormattingOptions.Default);
Microsoft.VisualStudioCode.RazorExtension.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\HtmlFormattingTest.cs (1)
691var edits = await GetFormattingEditsAsync(document, htmlEdits, span: default, options.CodeBlockBraceOnNextLine, attributeIndentStyle, options.InsertSpaces, options.TabSize, RazorCSharpSyntaxFormattingOptions.Default);