How to set tab width?


Hey guys

I just want to know how to set tab width? and how to indent using spaces?

It’s simple when I use sublime, but I can’t find how to set it in Atom.



Another problem is How can I know the codes indents using spaces or tab?


You can see those options in the Settings.


Thank you!


where are the settings?


Scroll down in the Settings View, which you can get to using Cmd+, on OS X or Ctrl+, on other platforms.



how do u open settings?


Edit —> Preferences(Ctrl + ,) —> <>Editor settings —> Good Luck, good work :wink:


Thanks for responses ! I appreciated :slight_smile:


Is there any workaround for changing tab size for an existing file ?


That setting should change it. Possibly, you have language specific settings active (check the language-*the_language* package you’re using) or you actually have spaces instead of tabs.