Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set auto import for Kotlin in Android Studio?

I can only find auto import options for XML, Java and C/C++ in preferences, but how can I make auto import work for Kotlin in Android Studio?

enter image description here

update: Most of the time, import statement is added automatically. But unused import statement never get cleared automatically when deleting codes.

like image 814
Marvin Avatar asked Dec 06 '15 03:12

Marvin


1 Answers

Auto Import is always on for Kotlin which is why you don't see the option.

If it isn't working the way you expect then you might create an issue in JetBrains Bug & Issue Trackerr.

like image 147
mfulton26 Avatar answered Nov 15 '22 12:11

mfulton26