sublime text 2怎么设置C99标准

{
"cmd":["gcc","$file_name","-o","${file_base_name}.exe","&&","${file_base_name}.exe"],
"selector":"source.c",
"shell":true,
"working_dir":"$file_path"
}
请问在原基础添加什么?
慕森卡
浏览 325回答 2
2回答

一只名叫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直接运行
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript