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
-
iiii90852yWasn't there a special file format for code style which can be put in the code repo and almost every IDE understands it?
-
@iiiii I don't check in anything IDE specific if I can help it. Plus, that's one more thing to forget when working in new projects.
Settings sync is supposed to handle that but needs this whole song and dance to get working right every update it seems. -
iiii90852y
-
There are several solutions, IntelliJ project defaults for example.
Git Hooks.
Editor config or similar approaches.
Integration into build tool, e.g. extension in Gradle build task - auto formatting makes just so much more fun than worrying. -
hjk10156962y@iiii Yep .editorconfig https://editorconfig.org/
Intelij comes with a plug-in for it.
Edit: see @lorentz already beat me to it.
Nothing quite so frustrating as intellij resetting your code styles. You put them back as best you can and they get put back to default again.
So you log in to every computer you use, disable settings sync, and do it AGAIN only to find some of your code styles settings aren't even available anymore. So now you have to be extra careful formatting a document doesn't change things you've had just the way you wanted for years.
But realistically, what other option does a person have?
rant