I always use `kotlin` command line to run `main.kt...
# scripting
s
I always use
kotlin
command line to run
main.kts
scripts, there is anyway to use the IntelliJ embedded Kotlin to run
main.kts
scripts? I don't want to make everyone from the team install Kotlin in their machines.
👀 1
y
Are you still wanting to run from the command line? Not using the run action in IDE? Right click the file, or in the editor.
i
Right-click action should work. In fact, if you look at the command line that the action is using, you can see
-kotlin-home
parameter there, and it points out to the intellij-bundled kotlin, where inside the
bin
dir you can find the
kotlin
wrapper too.
👀 1