I have a simple main.kt
file in VS Code:
fun main() {
println("Hello world");
}
I tried pressing F5 (I have a Node background) and it says "You don't have an extension for debugging Kotlin." I installed vscode-runner
by HarryHopkinson. F5 still give the same message, but Ctrl-Alt-N builds and runs the program. It seems to be executing the following:
cd "d:\Documents\kotlin\hello" && kotlinc main.kt -include-runtime -d main.jar && java -jar main.jar
From where does vscode-runner
get the parameters to execute this set of instructions?