I usually edit Python files with nano, so I need four spaces instead of a tab. How can I get nano to automatically insert spaces for tabs, and control how many of them it inserts?
I usually edit Python files with nano, so I need four spaces instead of a tab. How can I get nano to automatically insert spaces for tabs, and control how many of them it inserts?
Either create
.nanorc
in your home folder, including:or edit the system
/etc/nanorc
file.From the nano Command Manual:
For four spaces, the appropriate command would therefore be
nano -ET4
.Consider creating a permanent alias.