Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IntelliJ] Add note on Imports #954

Open
3 tasks
Tracked by #663
koppor opened this issue Nov 17, 2023 · 3 comments
Open
3 tasks
Tracked by #663

[IntelliJ] Add note on Imports #954

koppor opened this issue Nov 17, 2023 · 3 comments

Comments

@koppor
Copy link
Contributor

koppor commented Nov 17, 2023

What happened?

I have activated palantir java format:

image

This does not change the code style configured in the IDE:

image

When executing "optimize imports", the configured style is followed.

  • I think, the plugin needs to change the code style to "Default" or - even better - to "palantir" in the IDE settings, to be really transparent, about the import statements

What did you want to happen?

When executing "optimize imports", the palantir-style is followed


General wishes:

@jrchen-amzn
Copy link

I'm experiencing similar issues...

I'm curious whether the IntelliJ IDEA plugin could additionally optimize imports while reformatting code now?

@okuzan
Copy link

okuzan commented Feb 5, 2024

Any updates on this? Would be nice to not only format the code, but imports too, if IDEA supports this itself

@yotamshtosselfg
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants