-
Notifications
You must be signed in to change notification settings - Fork 1
/
C++ Single File.sublime-build
34 lines (33 loc) · 1.43 KB
/
C++ Single File.sublime-build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"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}\" && \"${file_path}/${file_base_name}\""
},
{
"name": "Run in New Terminal - No Warning",
"shell_cmd": "g++ \"${file}\" -o \"${file_path}/${file_base_name}\" && iTermLauncher \"clear && \\\"${file_path}/${file_base_name}\\\" && read && exit\""
},
{
"name": "Run in New Terminal",
"shell_cmd": "g++ \"${file}\" -o \"${file_path}/${file_base_name}\" && iTermLauncher \"clear && \\\"${file_path}/${file_base_name}\\\" && echo \\\"\n\nPress Return to exit...\\\" && read && exit\""
},
{
"name": "C++11 - Run",
"shell_cmd": "g++ \"${file}\" -std=c++11 -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\""
},
{
"name": "C++11 - Run in New Terminal - No Warning",
"shell_cmd": "g++ \"${file}\" -std=c++11 -o \"${file_path}/${file_base_name}\" && iTermLauncher \"clear && \\\"${file_path}/${file_base_name}\\\" && read && exit\""
},
{
"name": "C++11 - Run in New Terminal",
"shell_cmd": "g++ \"${file}\" -std=c++11 -o \"${file_path}/${file_base_name}\" && iTermLauncher \"clear && \\\"${file_path}/${file_base_name}\\\" && echo \\\"\n\nPress Return to exit...\\\" && read && exit\""
}
]
}