次の方法で共有


TextSelection.Tabify Method

Definition

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

public:
 void Tabify();
public:
 void Tabify();
void Tabify();
[System.Runtime.InteropServices.DispId(50)]
public void Tabify ();
[<System.Runtime.InteropServices.DispId(50)>]
abstract member Tabify : unit -> unit
Public Sub Tabify ()
Attributes

Examples

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

Remarks

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

Applies to