Skip to content

Instantly share code, notes, and snippets.

@nirlanka
Last active November 16, 2019 19:17
Show Gist options
  • Save nirlanka/e1cee625e5ece26f4e5f2cd2bb0149fa to your computer and use it in GitHub Desktop.
Save nirlanka/e1cee625e5ece26f4e5f2cd2bb0149fa to your computer and use it in GitHub Desktop.
SublimeText3 CSharp runner and builder for Linux and OS X using installed Mono development environment
using System;
class Test
{
static void Main()
{
Console.WriteLine("Hello Sublime");
}
}
{
"selector" : "source.cs",
"cmd" : "mcs $file_name && mono $file_base_name.exe",
"shell" : true,
"variants" : [
{
"cmd" : "mono $file_base_name.exe",
"name" : "Run",
"shell" : true
},
{
"cmd" : "mcs $file_name",
"name" : "Build",
"shell" : true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment