TAB -> Spaces 
See this link if you use gedit 
https://answers.launchpad.net/ubuntu/+source/gedit/+question/163516