{
// Windows
// build only
"shell_cmd": "g++ -std=c++14 -g -Wall \"${file}\" -o \"${file_base_name}.exe\"",
// doesn't matter if I use full path
"working_dir": "${file_path}",
// only Cpp files can use this sublime-build file
"selector": "source.c++",
"variants": [
{
// build and run in Terminus (sublime plugin)
// [Recommanded]
"name": "Run In Terminus",
"target": "terminus_exec",
"cancel": "terminus_cancel_build",
"shell_cmd": "g++ -std=c++14 -g -Wall \"${file}\" -o \"${file_base_name}.exe\" && cmd /c \"${file_base_name}.exe\""
},
{
// build and run in CMD
// you can type something in CMD then your progam can get its inputs
// [Recommanded]
"name": "Run in CMD",
"shell_cmd": "g++ -std=c++14 -g -Wall \"${file}\" -o \"${file_base_name}.exe\" && start cmd /c \"\"${file_base_name}.exe\" & pause \""
},
{
// build and run in sublime
// but you can't input anything to your progam
"name": "Run in Sublime",
"shell_cmd": "g++ -std=c++11 -g -Wall \"${file}\" -o \"${file_base_name}.exe\" && cmd /c \"${file_base_name}.exe\""
}
]
}
最后修改:2023 年 05 月 31 日
© 允许规范转载
1 条评论
2025年10月新盘 做第一批吃螃蟹的人coinsrore.com
新车新盘 嘎嘎稳 嘎嘎靠谱coinsrore.com
新车首发,新的一年,只带想赚米的人coinsrore.com
新盘 上车集合 留下 我要发发 立马进裙coinsrore.com
做了几十年的项目 我总结了最好的一个盘(纯干货)coinsrore.com
新车上路,只带前10个人coinsrore.com
新盘首开 新盘首开 征召客户!!!coinsrore.com
新项目准备上线,寻找志同道合 的合作伙伴coinsrore.com
新车即将上线 真正的项目,期待你的参与coinsrore.com
新盘新项目,不再等待,现在就是最佳上车机会!coinsrore.com
新盘新盘 这个月刚上新盘 新车第一个吃螃蟹!coinsrore.com