Hello Arthur,
checkong the code, I have found interesting thing...
It should work already, if you have TabsToSpaces set, as mentioned by Stefan.
So the option controls what should be done on editing and in addition, should convert tabs to spaces on save of document.
The same should also work if you have Tabs and Spaces mode set to Auto and initially in the content were not tabs (should be enough content for analysis).
Best regards,
Alex.