Imports getting starred in spite of "Use single class import" option

Answered

Intellij decides to star out all my imports no matter what settings I use.

 

I've tried single class import, Class count to use import with '*' (set to 100), Names count to use static import with '*' (set to 10).

classes with 20-30 imports always get starred.

Is there a way to turn this feature off all together?

2
3 comments

The only way is to use some large number there, like 999.

If it still uses wildcard imports, please file a bug at https://youtrack.jetbrains.com/issues/IDEA with the sample project to reproduce and your code style embedded in the project.

0
Avatar
Permanently deleted user

This is happening for me also. I can't attach a sample project, unfortunately, my projec imports 30 classes from within the same project, and then java.util.UUID. java.util.UUID is the only class that Android Studio implements as a wildcard. I'm running Android Studio 3.2 RC 3.

0
Avatar
Permanently deleted user

Sorry, this was a Kotlin file, so java import settings didn't apply. I accidentally had java.util set as a wildcard package in my kotlin settings.

0

Please sign in to leave a comment.