Hello! I would like to not use wildcard import. S...
# intellij
d
Hello! I would like to not use wildcard import. So in my .editorconfig, I put these lines:
Copy code
ij_kotlin_name_count_to_use_star_import = 99
ij_kotlin_name_count_to_use_star_import_for_members = 99
But intellij seems to ignore them and continue to import with wildcard. If I change directly in Intellij Setting, it works, but I would like to harmonise for all of my team. Is there a way to say to intellij: don't use wildcard (based on editorconfig)?
1
b
You can check in the
.idea/codeStyles
folder
k
do you have editorconfig enabled?
d
Yes
k
then I assume it is a bug
d
I see a ticket on Youtrack, but from 2020 I think 💀
b
.idea/codeStyles
doesn't work for you?
d
Hum .. the problem is that I don't want to use the .idea folder. we have the habit to not commit it 😕
and .editorconfig should be the more adapted for this task 😕
b
you can put this in your `.gitignore`:
Copy code
**/.idea/*
!**/.idea/codeStyles
d
Honestly I prefer avoid
g
I'm using
Copy code
ij_kotlin_name_count_to_use_star_import = 2147483647
ij_kotlin_name_count_to_use_star_import_for_members = 2147483647
in my
.editorconfig
and it works well
d
Doesn't work for me .. What's the version of your IDE?
Ok I .. trick some things in the IDE and it works .. well
k
what "some things"?
d
I think I removed the line about the package where the wildcard is disabled 🤔 , maybe that was the problem finally
The configuration works but this internal Intellij config override the behavior with editorconfig