using nano to edit Python code

It’s useful to change nano editor default tabs to spaces, especially for Python by putting into ~/.bash_aliases

alias nano='nano -c -ET4'

nano options

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

-c gives row/column display.

Tags:

Categories:

Updated:

Leave a Comment