Is there a mechanism in Intellij to support Kotlin...
# intellij
d
Is there a mechanism in Intellij to support Kotlin Scripts with a 'real' include ? -- By this I mean to be able to seperate out common boilerplate like "import java.io.File" into a common file so that .kts files can be simplier like @file:really-do-include("common.kts")
g
Your script definition can provide default imports. But I don’t think that feature that you request is possible, common.kts doesn’t know who will include it, Also not clear how tooling should work without import or script definition you just cannot write tooling for such code to understand what is
File
You can probably bypass it with source preprocessing, but again what about tooling Why imports are bother you in this case? Idea handling of imports is really good, they are collapsed and import process is really pleasant and smart