Open koppor opened 12 months ago
I'm experiencing similar issues...
I'm curious whether the IntelliJ IDEA plugin could additionally optimize imports while reformatting code now?
Any updates on this? Would be nice to not only format the code, but imports too, if IDEA supports this itself
This is a nasty one. We turned off Intellij's "auto optimize imports" on-the-fly / on save.
Seems like Intellij is going above and beyond the call of duty and trying to reformat on optimize imports: https://youtrack.jetbrains.com/issue/IDEA-353203/Intellij-optimize-imports-action-changes-formatting-of-text-blocks
We turned off Intellij's "auto optimize imports" on-the-fly / on save.
This is not helping me; first palantir reformats, then the imports are re-ordered, and spotless complains that the formatting is not correct.
This is not helping me; first palantir reformats, then the imports are re-ordered, and spotless complains that the formatting is not correct.
I don't get the comment. On https://github.com/palantir/palantir-java-format/issues/954#issuecomment-2108761245 it is said that "Optimize imports" is off. At your side, it is off, too, but there is still a change by IntelliJ?
@mindhaq Could you double check our "Optimize imports" setting?
What happened?
I have activated palantir java format:
This does not change the code style configured in the IDE:
When executing "optimize imports", the configured style is followed.
import
statementsWhat did you want to happen?
When executing "optimize imports", the palantir-style is followed
General wishes: