Open Lilalas opened 6 years ago
I came to realize the second scenario is probably a bug on Atom’s side because it applies to other languages as well—only that they respect my Soft Tabs
setting.
@Lilalas This package sets language specific settings, including softTabs
to true
. To change this, you can open language-python
in settings and change the tab type there.
Prerequisites
Description
Tab type auto-detection fails when creating a new
.py
file. Furthermore, the editor always inserts soft tabs regardless of theSoft Tabs
setting (specified in Settings → Editor). It only detects hard tabs correctly if I manually paste a hard tab character and then reopen the file.Steps to Reproduce
Tab Type
is set toauto
andSoft Tabs
is off (Settings → Editor) and the package-specific settings forlanguage-python
are all defaultFirst scenario:
~Second scenario:~
~2. Create a new Python source code file
Expected behavior: In the first scenario, I expect the editor to insert a hard tab because there was no other indentation in the document and
Soft Tabs
is disabled. ~In the second scenario, I expect the editor to automatically detect that the code uses hard tabs and therefore insert a hard tab when indenting a new line.~Actual behavior: In both scenarios, the editor inserts a soft tab (as if
Tab Type
was set tosoft
).Reproduces how often: Every time.
Versions
language-python
is on version0.49.5
.Additional Information
Tab type auto-detection works fine when I disable
language-python
for Python, or write code in any other language.