It is very simple to configure the text editor to use spaces or tabs each time you press the tab key. However, I work with a grasp of Python code supported by a large development team in my company, as well as some spaces and some tabs. I can't just make them all fit together, because 1) he would break git guilt, 2) he would get confused with git diff, and 3) he would inevitably break the assembly the next time another editor gets into their tab key in one of the files.
Instead, I would like the text editor to automatically detect if the file is formatted with spaces or tabs, and then match the existing layout. Does anyone know if something like this exists?
source
share