IntelliJ reorganizes imports
已回答
Hello,
When I hit 'Ctrl + Shift + O' in IntelliJ it removes unused imports but also reorder imports that messes up code reviews etc. How do I prevent it from reordering imports?
请先登录再写评论。
You can't optimize imports without reordering them, it's the same action.
In that case how do I control the order?
It's defined in the code style settings | imports: https://www.jetbrains.com/idea/help/code-style-java.html#d53349e920 .
We are also annoyed with this problem at our workplace. It would be good if they were separated in to several actions so you could disable it.