How do I get spaces instead of tabs in nano?

I generally modify Python documents with nano, so I require 4 rooms as opposed to a tab. Just how can I get nano to instantly insert rooms for tabs, and also regulate the amount of of them it inserts?

2022-06-07 14:34:37
Source Share
Answers: 1

From the nano Command Manual:

-E, --tabstospaces ¢Convert typed tabs to spaces.

-T <#cols>, --tabsize=<#cols> ¢Set the displayed tab length to #cols columns. The value of #cols must be greater than 0. The default value is 8.

For 4 rooms, the ideal command would certainly consequently be nano -ET4.

Take into consideration creating a permanent .

2022-06-07 15:00:09