{"cmd":["gcc","$file_name","-o","${file_base_name}.exe","&&","${file_base_name}.exe"],"selector":"source.c","shell":true,"working_dir":"$file_path"}请问在原基础添加什么?
2 回答
一只名叫tom的猫
TA贡献1906条经验 获得超3个赞
{"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直接运行
添加回答
举报
0/150
提交
取消