Sublime的新功能,这是我目前的构建系统:
{
"windows":
{
"cmd": ["g++", "$file_name","-o", "${file_base_name}.exe", "-lm", "-Wall","&","start", "${file_base_name}.exe"]
},
"selector": "source.c++",
"shell": true,
"working_dir": "${file_path}"
}
编辑构建系统以便在完成程序后cmd窗口不会关闭会很好。(理想情况与程序结尾处的 system(“pause”)相同或<在.bat文件中强>暂停)
答案 0 :(得分:0)
使用以下设置:
Menu > Preferences > Settings
// Shows the Build Results panel when building. If set to false, the Build
// Results can be shown via the Tools/Build Results menu.
"show_panel_on_build": true,