How to stop unifying indentation in entire file on open?


#1

Hi all.

I have a code which is, for historical reasons, mix of tab and space indentations. If I open it in Atom, the editor immediately unifies the indentation to tabs (which is what I want to be the default for general usage). Can I forbid Atom changing indents on lines I didn’t touched?

Thanks.


#2

As far as I know, Atom doesn’t do this by default. Can you reproduce this behavior when running Atom in Safe Mode?

To launch Safe Mode:

  1. Completely exit all instances of Atom
  2. Launch Atom with the command atom --safe

#3

With --safe it is ok. It still auto-removes trailing whitespaces, as I found, but thats is not a big issue and can be worked around by removing them. So I will go through my plugins to find the culprit for the indents…


#4

If you have my tabs-to-spaces package installed and configured to change indentation on save, it could be the culprit. (It doesn’t do this by default.)