Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
cave8746yI wish some more IDE's would be able to do that honestly. An IDE I use inserts more spaces when I paste stuff into it, so I end up doubling the spaces for every time I paste code. So it's not only an unreadable clusterfuck, it's also an unnavigable clusterfuck as well...
-
But do you let your IDE format it with spaces or tabs?
If your settings differ from those of a teammate, your IDE will probably complain and try to reformat all the time, which will result in a big mess containing both spaces and tabs. -
@TempestasLudi not to forget all the whitespace changes git keeps telling you about
-
@TempestasLudi use the same formatter and version control your code-style settings. I do this even for my private projects.
-
joykill3436yYeh we have formatting rules defined in a config file for each project, a githook that does reformatting on commit according to the rules an dthat blocks the commit if it can't reformat everything automatically...
On top of that, our Ci process checks formatting as well in one of its stages...
It allows for consistent formatting and appropriate shaming if someone makes the build fail -
monkcs5596y@TempestasLudi Schrödingers formatting: If you never check it is both tabs and spaces at the same time
All arguments about tabs and spaces, I just write my code in a non-formatted clusterfuck and then let the IDE format it.
rant
boom solved it