How Do I Disable Optimize Imports in Intellij

4 Answers. Disable File | Settings | Editor | General | Auto Import | Optimize imports on the fly. Normally you don’t need to add imports manually, IDEA does it for you.

How do I change optimize imports in IntelliJ?

  1. Press Ctrl+Alt+S to open the IDE settings and select Tools | Actions on Save.
  2. Enable the Optimize imports option. …
  3. Apply the changes and close the dialog.

How do I resolve import issues in IntelliJ?

  1. Project Structure ( Ctrl + Alt + Shift + S ).
  2. Modules.
  3. Select your problem module.
  4. Change tab on top of window “Sources”.
  5. Remove unwanted source roots. Keep one and add src and test source roots in this root.
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest