Published on

Change indentation in nano

Author
  • Name
    A. Fauzi
    Title
    Human Being

To change indentation in nano, go to the /etcdirectory and change nanorc

$ cd /etc $ sudo nano nanorc

And then enable set tabsize 8 option, and change the value, e.g. set tabsize 4
To use spaces as indentation instead of tabs, you can enable set tabstospaces option.

nano indentation.png