How Do I Replace Spaces with Tabs?
Home Page (Text Editor) | Overview | How Do I ... Topics | FAQ | Reference
To replace spaces with tabs
Select the text that contains the spaces you want to replace with tabs, or choose Select All from the Edit menu to select the entire file.
From the Edit menu choose Advanced, then click Tabify Selection.