https://kotlinlang.org logo
#android
Title
# android
c

chanjungskim

03/29/2023, 8:17 AM
Is there any way to
not import
specific package or class? I enabled auto import and it keeps importing something else.
s

Szymon Jeziorski

03/29/2023, 9:46 AM
c

chanjungskim

03/29/2023, 9:56 AM
It's for all the files. I want to use it for only one file.
s

Szymon Jeziorski

03/29/2023, 10:09 AM
You can exclude individual classes, static members or methods this way as well, passing
packageX.ClassY
would exclude only ClassY from autoimport, passing
packageX.ClassY.memberZ
would only exclude
ClassY.memberZ
from static import etc.
c

chanjungskim

03/29/2023, 2:33 PM
No, I mean, default should include all and I want to exclude in some files.
3 Views