Skip to content

Instantly share code, notes, and snippets.

@Sciorz
Created December 3, 2017 04:17
Show Gist options
  • Save Sciorz/511ed65d330479430884fab2ca8ad734 to your computer and use it in GitHub Desktop.
Save Sciorz/511ed65d330479430884fab2ca8ad734 to your computer and use it in GitHub Desktop.
ubuntu-gnome 使用sublime编译运行C++/C
{
"cmd": ["g++", "${file}", "-std=c++11", "-o", "${file_path}/${file_base_name}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",
"variants":
[
{
"name": "Run",
"cmd":["gnome-terminal", "--", "bash", "-c", "g++ '${file}' -std=c++11 -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}' ;read -n1 -p '\npress any key to continue.'"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment