0

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?

Comments
  • 2
    Wasn't there a special file format for code style which can be put in the code repo and almost every IDE understands it?
  • 1
    @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.
  • 0
    @cuddlyogre it's not ide specific. That's the catch.

    But I've forgotten what that file format is
  • 3
    @iiii You're thinking of editorconfig
  • 0
    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.
  • 1
    @iiii Yep .editorconfig https://editorconfig.org/
    Intelij comes with a plug-in for it.

    Edit: see @lorentz already beat me to it.
Add Comment