How do I convert tabs to spaces in Notepad++?
I found a webpage that suggests it's possible, but I couldn't find any information about how to do it.
I would like to be able to do that, because some web forms don't respect code with tabs in them.
In the Notepad menu bar click on Edit > Replace.... Right click on the Find what field and choose Paste from the context menu, or press CTRL+V. This inserts the tab character you copied into the 'Find what' box. In the 'Replace with' field, enter a comma and click on Replace All.
To convert tabs in a text file to spaces, you can use the expand command. To convert each tab to a single space character, use the -t 1 option.
Notepad++ – Show White Space and TAB A lot of Python debugging frustration can be avoided by activating the 'Show White Space and TAB' option from the View > Show Symbol menu.
To convert existing tabs to spaces, press Edit->Blank Operations->TAB to Space
.
If in the future you want to enter spaces instead of tab when you press tab key:
Settings->Preferences...->Language
(since version 7.1) or Settings->Preferences...->Tab Settings
(previous versions)Replace by space
Tab size
field.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With