How to import additional packages by default in Kotlin


#1

I have my.framework.MyClass which I want to use everywhere in my project as MyClass without any importing. Can I instruct Kotlin compiler to import my.framework package by default as it’s done with classes from its own standard library?


#2

This is currently not possible: https://kotlinlang.org/docs/reference/packages.html#default-imports

Feel free to file a feature request at http://kotl.in/issue.