Currently using beta channel Atom 1.9.0-beta0, but this issue seems to exist for me for several versions now.
Using the Atom settings dialogs, I have soft tabs configured with a global tab length of 2 and in keeping with pep8, my python tab length is overridden to 4 (settings -> packages -> language-python) in all of the settings sections (grammar, console grammar, etc.)
When I’m editing a python file, the tab guide lines are every 2 spaces, hitting tab inserts 2 spaces, and using tab and shift-tab to indent and outdent blocks of code also appears to indent/outdent 2 spaces. Due to my language-python settings, it seems like all of these should be operating as if soft tabs represent 4 spaces. I’ve confirmed python grammar is active via the Atom status bar.
If I change my global settings to 4 spaces, then sure, python works with 4. I don’t think this is python-specific, I don’t think any of my language-specific settings regarding tab size work, so I can’t set my global size to 4 and then set Ruby size to 2, etc. It just moves the problem around.
Am I misunderstanding how this is supposed to work or is something broken (at least with my install/configuration if not Atom as a whole)?
There was an old thread that touched language-specific tab settings but I thought it’d be better to create a new thread versus bump the old one. Here is a link to the old thread for reference: Different tab size depending on language