33 references to TabSize
Microsoft.CodeAnalysis.CSharp.Features (9)
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (2)
475
var indentation = lineText.ConvertTabToSpace(options.
TabSize
, initialColumn: 0, endPosition: position - lineContainingPosition.Start);
476
return indentation.CreateIndentationString(options.UseTabs, options.
TabSize
);
Snippets\CSharpSnippetHelpers.cs (2)
41
var newIndentation = new IndentationResult(indentation.BasePosition, indentation.Offset + syntaxFormattingOptions.
TabSize
);
42
return newIndentation.GetIndentationString(parsedDocument.Text, syntaxFormattingOptions.UseTabs, syntaxFormattingOptions.
TabSize
) + newLine;
SplitStringLiteral\StringSplitter.cs (1)
32
protected int TabSize => IndentationOptions.FormattingOptions.
TabSize
;
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (2)
105
return indentation.GetIndentationString(document.Text, options.UseTabs, options.
TabSize
);
249
var indentation = FormattingExtensions.CreateIndentationString(options.IndentationSize, options.UseTabs, options.
TabSize
);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (2)
787
var indentation = lineText.ConvertTabToSpace(formattingOptions.
TabSize
, initialColumn: 0, endPosition: position - lineContainingPosition.Start);
788
return indentation.CreateIndentationString(formattingOptions.UseTabs, formattingOptions.
TabSize
);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\a6db168d9ad5d460\CSharpTriviaFormatter.DocumentationCommentExteriorCommentRewriter.cs (1)
49
_options.
TabSize
);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
231
Options.
TabSize
,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (2)
147
_indentation += text.ConvertTabToSpace(_options.
TabSize
, _indentation, text.Length);
203
ShouldFormatSingleLineDocumentationComment(_indentation, _options.
TabSize
, trivia))
Microsoft.CodeAnalysis.Features (7)
src\roslyn\src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (2)
133
options.
TabSize
,
141
var desiredWhitespace = desiredSpaceCount.CreateIndentationString(options.UseTabs, options.
TabSize
);
Wrapping\AbstractCodeActionComputer.cs (1)
109
return desiredIndentation.GetIndentationString(newSourceText, Options.FormattingOptions.UseTabs, Options.FormattingOptions.
TabSize
);
Wrapping\BinaryExpression\BinaryExpressionCodeActionComputer.cs (1)
63
.CreateIndentationString(options.FormattingOptions.UseTabs, options.FormattingOptions.
TabSize
)));
Wrapping\ChainedExpression\ChainedExpressionCodeActionComputer.cs (1)
85
OriginalSourceText.GetOffset(firstPeriod.SpanStart).CreateIndentationString(options.FormattingOptions.UseTabs, options.FormattingOptions.
TabSize
)));
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (1)
108
var indentString = afterOpenTokenOffset.CreateIndentationString(Options.FormattingOptions.UseTabs, Options.FormattingOptions.
TabSize
);
Wrapping\SyntaxWrappingOptions.cs (1)
24
public int TabSize => FormattingOptions.
TabSize
;
Microsoft.CodeAnalysis.Workspaces (13)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
99
Options.
TabSize
,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (3)
326
length = text.GetTextColumn(_options.
TabSize
, initialColumn: 0);
336
var initialColumn = _treeData.GetOriginalColumn(_options.
TabSize
, token);
337
length = text.ConvertTabToSpace(_options.
TabSize
, initialColumn, text.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (7)
610
var position = lastText.ConvertTabToSpace(Options.
TabSize
, initialColumn, index);
611
var tokenPosition = lastText.ConvertTabToSpace(Options.
TabSize
, initialColumn, lastText.Length);
787
changes.Add(CreateWhitespace(delta.Spaces.CreateIndentationString(Options.UseTabs, Options.
TabSize
)));
813
sb.AppendIndentationString(delta.Spaces, Options.UseTabs, Options.
TabSize
);
889
spaces: text.ConvertTabToSpace(Options.
TabSize
, lineColumn.With(whitespaceBetween).Column, text.Length),
925
spaces: lineText.GetColumnFromLineOffset(lineText.Length, Options.
TabSize
),
931
spaces: text.ConvertTabToSpace(Options.
TabSize
, initialColumn, text.Length),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
57
_tabSize = options.FormattingOptions.
TabSize
;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IIndentationService.cs (1)
78
=> GetIndentationString(indentationResult, sourceText, options.UseTabs, options.
TabSize
);