Skip to content

Instantly share code, notes, and snippets.

@farshed
Last active July 20, 2020 08:58
Show Gist options
  • Save farshed/91a57fdd4308a1ff142176f3ea4d9f9d to your computer and use it in GitHub Desktop.
Save farshed/91a57fdd4308a1ff142176f3ea4d9f9d to your computer and use it in GitHub Desktop.
Sublime Text 3 build system config to compile and run Kotlin programs
{
"cmd": ["kotlinc $file -include-runtime -d $file_base_name.jar && java -jar $file_base_name.jar"],
"selector": "source.kotlin",
"file_patterns": ["*.kt"],
"shell": true
}
@farshed
Copy link
Author

farshed commented Jul 20, 2020

You need to have Kotlin compiler installed and its path set in your environment variables.
Follow the instructions here: https://kotlinlang.org/docs/tutorials/command-line.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment