IEditorOperations::ConvertTabsToSpaces Method ()

 

Converts tabs to spaces in the selection, or, if the selection is empty, on the line the caret is on.

Namespace:   Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

bool ConvertTabsToSpaces()

Return Value

Type: System::Boolean

true if the edit succeeded, otherwise false.

A tab is replaced by the number of spaces equal to the distance between one tab and the next.

Return to top
Show: