Skip to content

Instantly share code, notes, and snippets.

@tinytengu
Created May 4, 2021 09:19
Show Gist options
  • Save tinytengu/993c4330e887821bbb839ea9aa80b2b5 to your computer and use it in GitHub Desktop.
Save tinytengu/993c4330e887821bbb839ea9aa80b2b5 to your computer and use it in GitHub Desktop.
Sublime Text 3 C++ (G++) Custom Build System
{
"shell_cmd": "g++ \"$file\" -o \"$file_path/$file_base_name\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "$file_path",
"selector": "source.c, source.c++",
"variants":
[
{
"name": "Run",
"shell_cmd": "g++ \"$file\" -o \"$file_path/$file_base_name\" && start cmd /k \"$file_path/$file_base_name.exe\""
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment