Skip to content

Instantly share code, notes, and snippets.

@rainyear
Last active December 18, 2015 21:29
Show Gist options
  • Save rainyear/5848051 to your computer and use it in GitHub Desktop.
Save rainyear/5848051 to your computer and use it in GitHub Desktop.
compile & run scripts in sublime text.
//Java.sublime-build
{
"cmd": ["javac", "$file"],
"selector": "source.java",
"encoding": "cp936",
"variants":
[{
"name": "Run",
"cmd": ["java", "$file_base_name"]
}]
}
//C.sublime-build
{
"cmd": ["gcc", "${file}", "-o", "${file_path}/${file_base_name}"],
"working_dir": "${file_path}",
"selector": "source.c",
"variants":
[{
"name": "Run",
"cmd" : ["${file_path}/${file_base_name}"]
}]
}
//Lisp.sublime-build
{
"cmd": ["clisp", "${file}"],
"working_dir": "${file_path}",
"selector": "source.lisp"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment