Oh! I've never used the Alt + F8, might have to give it a try.
About the CTRL + ALT + O to optimize imports, I've been using the automatic function inside IntelliJ's settings and it actually does a pretty good job. It's not perfect, but I would say it gets the imports right and cleans them up like 8/10 times.
This option can be enabled in Settings > Editor > General > Auto import > ... there will be 2 checkboxes for both:
Add unambiguous imports on the fly.
Optimize imports on the fly (for current project).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Oh! I've never used the
Alt + F8
, might have to give it a try.About the
CTRL + ALT + O
to optimize imports, I've been using the automatic function inside IntelliJ's settings and it actually does a pretty good job. It's not perfect, but I would say it gets the imports right and cleans them up like 8/10 times.This option can be enabled in
Settings > Editor > General > Auto import > ...
there will be 2 checkboxes for both: