How to avoid change of imports order defined by Eclipse users?

Hello,
at work I am working with a lot of Eclipse users.

Of course I often use 'Reformat code' with 'Optimize imports'. How can I avoid change of imports' order which is produced by Eclipse? This is very annoying for my colleagues to synchronize changes after this code reformation.f

2 comments
Comment actions Permalink

you can configure the order you'd like in Code Style configuration

0
Comment actions Permalink

I've setup the imports order for my base packages, but intellij is not ordering subpackages in alphabetical order, which seems to be the order Eclipse is using. I could add an entry in the import ordering preference panel for every single subpackage in my project, but that's a huge pain in the butt. There are dozens and I'd have to manually update the ordering every time someone adds a new subpackage. Is there some way to get intellij to sort imports alphabetically (after observing the order defined in code style)?

0

Please sign in to leave a comment.