为了账号安全,请及时绑定邮箱和手机立即绑定

sublime text 2怎么设置C99标准

sublime text 2怎么设置C99标准

慕森卡 2019-04-16 20:26:27
{"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直接运行
                            
查看完整回答
反对 回复 2019-04-16
  • 2 回答
  • 0 关注
  • 324 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信