3 ms·
If you're unable to configure your editor and code formatter to work around this issue so that code is converted to your preferred format when you open a file a
by onion2k 6y ago
If you're unable to configure your editor and code formatter to work around this issue so that code is converted to your preferred format when you open a file and back to the company style when you commit it then the chance of you writing any useful code is exactly zero.
- mantap 6y agoConverting from tabs to spaces is easy. But if you try to convert from spaces to tabs you may get a mixture because there is no requirement with spaces that the indentation is a multiple of anything. Code written using tabs is usually aligned differently.
- pitkali 6y agoBut isn't that just a matter of using a formatter to ensure correct style in addition to tabs? If you are using tabs for indentation, your style guide probably does not, or at least should not, depend on how wide they are on the user's screen.