DEV Community

Discussion on: What are your favorite IntelliJ shortcuts?

Collapse
 
chrisvasqm profile image
Christian Vasquez

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).