InteliJ imports can't be absolute
Answered
Hello, I'm using the recent release of Intelij - version 3.1 on an ARM Mac, and my imports can't be absolute when writing Kotlin.
My imports come out looking like this:
// This is what Intelij gives me:
import ...frontend.api.*
// I want this:
import ...frontend.api.RootModel
I have checked multiple settings, such as "class count to use imports with" within the Java settings. As well as the "Replace on demand import with a single class" in the imports setting, and nothing seems to happen. Even when I fix it manually and then import something new, Intelij will even correct this and format my changes back to import everything from the route/package.
How can I fix this?
Many thanks in advance!
Please sign in to leave a comment.
Please, check the import options in the
IntelliJIDEA/File | Settings | Editor | Code Style | Kotlinwindow, Imports tab:If, after changing these settings, you still experience the same problem, please, provide us with a sample project to reproduce it. You can download it using the JetBrains Uploads service and write here an ID you receive.
Ah perfect! It works now by changing the top level symbols to "use single name import"!
Thanks a ton!
You're welcome!
If you have any further questions, please, don't hesitate to ask.