1. {
    2. "cmd": ["gcc","-Wall", "${file}","-std=c99", "-o", "${file_path}/${file_base_name}"],
    3. "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
    4. "shell":true,
    5. "working_dir": "${file_path}",
    6. "selector": "source.c, source.c++, source.h",
    7. "encoding":"gbk",
    8. "variants":[
    9. {
    10. "name": "Run",
    11. "cmd": ["cmd", "/c", "gcc", "-fexec-charset=gbk", "-Wall", "-D_GNU_SOURCE", "${file}",
    12. "-std=c99","-o", "${file_path}/${file_base_name}",
    13. "&&", "cmd", "/c", "${file_path}/${file_base_name}"]
    14. },
    15. {
    16. "name": "RunInCommand",
    17. "cmd": ["cmd", "/c", "gcc", "-Wall", "-fexec-charset=gbk", "-D_GNU_SOURCE","${file}",
    18. "-std=c99","-o", "${file_path}/${file_base_name}",
    19. "&&", "start", "cmd", "/c", "${file_path}/${file_base_name} & echo.&pause"]
    20. }
    21. ]
    22. }