Skip to content

Instantly share code, notes, and snippets.

@sjsakib
Created April 21, 2016 21:59
Show Gist options
  • Save sjsakib/a48e99c2941e9c23676e8d55a788f4fa to your computer and use it in GitHub Desktop.
Save sjsakib/a48e99c2941e9c23676e8d55a788f4fa to your computer and use it in GitHub Desktop.
Sublime build system to run in cmd window
{
"shell_cmd": "g++ -std=c++11 \"${file}\" -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++,source.cpp",
"variants":
[
{
"name": "Interactive",
"shell_cmd": "g++ -std=c++11 \"${file}\" -o \"${file_base_name}\" && start cmd /k \"${file_base_name} & pause & exit\""
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment