About
For formatting, change the tabs to spaces. This tool is useful if you have text or code in a file that is tabbed and you want it to take up less horizontal space. You can change how many spaces are the same as one tab.
Leading Tabs
Only tabs at the top. When turned on, this tool will only convert tabs that don't have another string before them (see examples). When turned off, all tabs will be replaced with spaces, no matter where they are.
Basic Examples
Input
Example 1: Replace with 4 spaces. Leading tabs enabled.[tab]
Hello[tab]
World!
[4 spaces]
Hello[tab]
World!
In the first example above, the tab
between the word "Hello" and "World" is ignored because the tab
is preceeded by a letter (o).
[space]
Hello[space]
World!
Notes
- You can see how many tabs have been changed in the bottom left corner.
- In the text box, you can also use the tab key.
Related Tools
- Spaces to Tabs - Convert spaces to tabs.