2016-08-15 42 views
0

新的昇華,這是我目前的編譯系統:如何防止在Windows上的Sublimetext3中運行程序後關閉控制檯窗口?

{ 
"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窗口將不會完成程序後關閉(Idealy一樣系統(「暫停「)在程序結束或暫停 .bat文件)

+1

http://ss64.com/nt/cmd.html - >使用 「CMD/K G ++」 應該做的伎倆 – stijn

+1

打開命令提示窗口中,輸入'CMD /'和讀取輸出幫助?。與參數'/ C'相比,參數'/ K'表示*保持打開/運行*,意思是關閉/退出*。 – Mofi

+0

@stijn謝謝,現在工作。 –

回答

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, 
相關問題