using nano to edit Python code

It’s useful to change nano editor default tabs to spaces, especially for Python. Do so with one-time Terminal command:

echo "alias nano='nano -c -ET4'" >> ~/.bash_aliases

nano options

-ET4 gives the standard Python indentation of four spaces, not tabs.

-c gives row/column display.

Tags:

Categories:

Updated: