IIndentationManagerService.UseSpacesForWhitespace Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.