The conversion is done so that the alignment always stays the same - the conversion does not simply replace the characters, but uses an algorithm to find out how the replacement has to be done.
Notes
It also removes spaces at the end of lines. It works with ANSI, UTF-8 and even UTF-16 (on Windows mostly referred to as Unicode) files alike.
Version
Latest known: 1.1.7 (2022-10-11)
Examples
1. searches directory for matching file and then changes spaces to tabs.
tabspace64.exe d:\www /include:cfmlx.cfm
tabspace - Help
# tabspace - Help
Source: https://tools.stefankueng.com/tabspace.html
```
usage:
tabspace [/path:"path\to\check"] [/checkonly] [/usetabs] [/tabsize:4] [/leaveeol] [/ext:"extension;list"]
/path : the path to scan (file or dir), defaults to the current directory
/checkonly : if specified, the files are not modified but only an info is shown
/usetabs : convert spaces to tabs instead of tabs to spaces
/tabsize : specifies the tab size, defaults to 4
/leaveeol : if specified, whitespaces at the end of lines are not removed
/cstyle : if specified, whitespaces inside C/C++ strings are ignored
/ext : a list of file extensions to scan, other extensions are ignored.
defaults to "c;cc;cpp;cs;cxx;h;hpp;hxx"
if this is set, /include must not be set!
/include : a list of patterns to include, separated by ';'
if this is set, /ext must not be set!
for example "c:\sub1\*.*;*\sub2\*.cpp"
/exclude : a list of patterns to ignore, separated by ';'
for example "c:\sub1\*.*;*\sub2\*.cpp"
/unicode : switches the console output to unicode
```