Skip to content

Instantly share code, notes, and snippets.

@HereChen
Created April 24, 2014 12:26
Show Gist options
  • Save HereChen/11252862 to your computer and use it in GitHub Desktop.
Save HereChen/11252862 to your computer and use it in GitHub Desktop.
sublime: gcc
{
"cmd": ["gcc", "$file", "-o", "$file_base_name"],
"selector": "source.c",
"working_dir": "${file_path}",
"variants":
[
{
"name": "Run",
"cmd" : ["$file_path/${file_base_name}"],
},
{
"name": "Build & Run",
"shell_cmd" : "gcc \"$file_name\" -o \"${file_base_name}\" && \"$file_path/${file_base_name}\"",
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment