set tabsize 4 set tabstospaces
You could also use it through CLI when you open a file: nano -T 4 foo.txt
nano -T 4 foo.txt