Export (0) Print
Expand All

TextSelection.Tabify Method

Converts spaces to tabs in the selection according to your tab settings.

Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)

void Tabify ()
void Tabify ()
function Tabify ()

Converts contiguous spaces to tabs within the selected text according to the global setting for a tab's size.

Sub TabifyExample()
   ' Before running this example, open a code document.
   Dim objSel As TextSelection = DTE.ActiveDocument.Selection
   ' Select all code in open document.
   ' Convert spaces in selection to Tab characters.
End Sub

Community Additions

© 2014 Microsoft