Skip to content

Instantly share code, notes, and snippets.

@SourabhSNath
Created October 30, 2020 05:57
Show Gist options
  • Save SourabhSNath/f775a5dd54ddda4565cfbaf3e1f15982 to your computer and use it in GitHub Desktop.
Save SourabhSNath/f775a5dd54ddda4565cfbaf3e1f15982 to your computer and use it in GitHub Desktop.
To run Kotlin and then delete the jar and class files after running using Code Runner on VS Code
// Add this within code-runner.executorMap
"kotlin": "cd $dir && kotlinc $fileName -include-runtime -d $fileNameWithoutExt.jar && java -jar $fileNameWithoutExt.jar && rm -r $fileNameWithoutExt.jar $fileNameWithoutExtKt.class"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment