Tabify
This section may contain incomplete, premature, or mistaken information, prone to change without notice.
Tabify (Ctrl+Shift+O)
Tabifies the indentation of the selection by replacing groups of leading white-spaces
with Tabs on each line
according to the current Tab Size setting.
If Tabs and Spaces are mixed together on the beginning of a line, the total visual white-space
extent is calculated first, and only then Tabs (and Spaces) are used to fill the space of the original indentation. Note that Tabs always take precedence over Spaces while filling the indentation, i.e. Spaces are used only in cases where necessary and where another Tab would overflow the original extent of the indentation.
Note: Using this tool should not generate any visible changes to the indentation, when used with a fixed-width font. However, some proportional fonts do not use the average character width for Spaces, thus Tabs may seem to be longer than a set of Spaces. This is a visual inconveniency only and should not be considered incorrect.
Note: This tool does not modify any other white-spaces
than the leading ones.
See also Untabify tool.