An Atom package for converting leading whitespace to either all spaces or all tabs.
It can convert any form of leading whitespace to either all spaces (Untabify) or the maximum number of tabs and minimum number of spaces with tabs up front (Tabify) to fill the same space. It can also convert all tabs in a document to spaces (Untabify All).
It will also, with configuration, convert to your preferred method of leading whitespace on save.
tabs-to-spaces:tabify— Converts leading whitespace to tabs
tabs-to-spaces:untabify— Converts leading whitespace to spaces
tabs-to-spaces:untabify-all— Converts all whitespace on a line to spaces
Tabs to Spaces uses the following configuration values:
editor.tabLength— sets the number of space characters a tab character is equivalent to
tabs-to-spaces.onSave— if set to either
untabifyit performs that operation on save. Warning: Setting this to anything other than
nonecan significantly impact performance when saving large files.
The package also supports language-specific configuration for the
'*':'tabs-to-spaces':'onSave': 'tabify''.source.js':'tabs-to-spaces':'onSave': 'none'
No matter what
tabs-to-spaces.onSave settings you configure, your
config.cson will not be automatically tabified or untabified.
Keybindings have not been set for this package. They can easily be added by referencing the commands listed above.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.