I downloaded this because it is supposed to replace SPACES with TABS… The problem is, by default it sets ALL TABS to SPACES and ON LOAD it EDITS THE FILE AND SAVES IT!!!
All of my python files are screwed… Instead of a tab being 4 spaces, as my settings state, some are 2, some are 4… some tabs are there and some are spaces… mixed indentation throughout the entire file, my entire project…
On top of this, you can’t UNDO because of how it saves… and because I restarted Sublime Text before I noticed this malicious addon infected all of my files… I have a broken neck, back and severe nerve damage - what little time I can spend on work is now going to fix this… my last backup is too many days behind…
This is so damned bad… who would save a file on load without letting the user decide - as soon as the addon is installed, it infects all of your files or the next time the sublime text app is restarted.
Please steer clear… it also damaged my column alignment - instead of it using tabs, all of them are spaces…
No wonder some of my files are MEGABYTES when they used to be 100kb… this is why I don’t use spaces and why I’d prefer files I work on to be converted to tabs and why I downloaded this addon…
Package Control link: https://packagecontrol.io/packages/Invisible%20Tabs%20Spaces%20Switcher
Why did I make this? I don't like working with spaces, but many development projects (Package Control, for example) require them—and coders working on teams often have different personal preferences. This lets you work the way you want to, without causing formatting issues online or making it harder to compare files when reviewing pull requests (GitHub will flag identical files for comparision if one has tabs and one has spaces).
When I installed it… I could see the first bit - convert spaces to tabs in a file as soon as you open it… there is no mention of saving… it says you have to save for it to convert tabs to spaces ( and the first thing I did was disable that setting although it has a bug in the menu where the default and user files are split into 2 commands instead of 1… the issues page doesn’t work at all either for the link which is why I’m posting this virus alert here.
I’m currently trying a technique to fix this by replacing tabs…
4 to 1, 3 to 1, 2 to 1… 1+space to 2, space+1 to 2… but it still leaves a lot of spaces left over… and I can’t set a macro for it without finding some mod so this is all manual for all of my damned files…