다음을 통해 공유


IIndentationManagerService.UseSpacesForWhitespace Method

Definition

Determines whether spaces or tab should be used for buffer when formatting.

public:
 bool UseSpacesForWhitespace(Microsoft::VisualStudio::Text::ITextBuffer ^ buffer, bool explicitFormat);
public bool UseSpacesForWhitespace (Microsoft.VisualStudio.Text.ITextBuffer buffer, bool explicitFormat);
abstract member UseSpacesForWhitespace : Microsoft.VisualStudio.Text.ITextBuffer * bool -> bool
Public Function UseSpacesForWhitespace (buffer As ITextBuffer, explicitFormat As Boolean) As Boolean

Parameters

buffer
ITextBuffer

A position on the line of text being formatted.

explicitFormat
Boolean

true if the format is due to an explicit user request (e.g. format selection); false if the format is a side-effect of some user action (e.g. typing a newline).

Returns

true if spaces should be used.

Applies to