一只名叫tom的猫
{"cmd":["gcc","-Wall","${file}","-std=c99","-o","${file_path}/${file_base_name}"],"file_regex":"^(..[^:]*):([0-9]+):?([0-9]+)?:?(.*)$","shell":true,"working_dir":"${file_path}","selector":"source.c,source.c++","encoding":"cp936","variants":[{"name":"Run","cmd":["cmd","/c","gcc","-Wall","${file}","-std=c99","-o","${file_path}/${file_base_name}","&&","cmd","/c","${file_path}/${file_base_name}"]},{"name":"RunInCommand","cmd":["cmd","/c","gcc","-Wall","${file}","-std=c99","-o","${file_path}/${file_base_name}","&&","start","cmd","/c","${file_path}/${file_base_name}&echo.&pause"]}]}像我这么改就行了,这是我用过最好的版本。可以在sublime的下面输出,也可以在控制台输出,f5直接运行