IEditorOperations::Tabify Method ()
Visual Studio 2015
Converts the leading white space to tabs on all lines touched by the selection and caret.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
If the column position of the first non-whitespace character is not evenly divisible by the tab size, there will be spaces left at the end of the line equal to the remainder of that division.
Show: