美文网首页
mac sublime text 3 编译C程序

mac sublime text 3 编译C程序

作者: 勇者与王者 | 来源:发表于2020-01-05 11:21 被阅读0次

好久没来
{
"cmd": ["gcc", "{file}", "-o", "{file_path}/{file_base_name}"], "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)",
"working_dir": "${file_path}",
"selector": "source.c",

"variants":
[
    {
        "name": "Run",
        "cmd": ["bash", "-c", "gcc '${file}' -o '${file_path}/${file_base_name}' && open -a Terminal.app '${file_path}/${file_base_name}'"]
    }
]

}%
命名为C-build.sublime-build 然后在tool菜单中选中 重启即可

相关文章

网友评论

      本文标题:mac sublime text 3 编译C程序

      本文链接:https://www.haomeiwen.com/subject/nomqactx.html