Sublime Text 3, convert spaces to tabs
I know there are a lot of posts about this, but I couldn´t get it to work. I use tabs for coding. Is there a way, to convert always spaces to tabs? I.e. on open and on Save files? Anyone got an idea? // edit: My desire is to do this automatically ! -> open, save or on the fly Does anyone know how to do? I tried this : import sublime, sublime_plugin, os class ExpandTabsOnSave(sublime_plugin.EventListener): # Run ST's 'expand_tabs' command when saving a file def on_pre_save(self, view): if view.settings().get('expand_tabs_on_save') == 1: view.window().run_command('expand_tabs') And here are my