Tab length not respected?


#1

Hey, I was using Atom for some schoolwork that mandates 2-space tabs. However, it seems that, even with soft-tabs on and tab length set to 2 in settings, hitting enter on a def... line (in python) or just hitting the tab key inserts a tab character, displayed at 4 characters.

The only community package I’m using is project-manager. I am using Arch Linux, and installed the package off the AUR using standard methods.


#2

You need to set in the language-python package too.


#3

Aha! Thanks, didn’t think of that.


#4

Actually, wait, is there a way to set it on a per-file basis? In my free time I’d much prefer to default to 4-space tabs, but just for certain files can I force Atom to use a different tab length?


#5

I believe the tab-control package can do this for you.