jtokoph / auto-detect-indentation

Auto detect indentation of files in Atom
MIT License
39 stars 6 forks source link

Not auto detecting correctly until 'save' #26

Closed stevgouws closed 7 years ago

stevgouws commented 7 years ago

If I leave my tab length in Atom Editor settings on the default 2 spaces, then open a file that is using 4 spaces tab length, it wrongly picks it up as 2 spaces. If I hit save without changing anything, it then correctly picks up that it should be 4 spaces.

The same happens the other way round. If I set the default in Atom Editor to 4 spaces, then open a file that has 2 spaces tabs, I have to again hit save first for it to correctly calculate the file's spacing.

Some projects I work on use 2 spaces tabs and some 4, every time I have to hit save first when I open a new file, or I have to keep changing the default.

Am I missing something?

I'm on Mac - El Capitan. Atom 1.13.0, auto-detect-indentation 1.3.0.

Thanks, Steven

stevgouws commented 7 years ago

Just realised this is a duplicate of https://github.com/jtokoph/auto-detect-indentation/issues/25