{ "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++, source.h", "encoding":"gbk", "variants":[ { "name": "Run", "cmd": ["cmd", "/c", "gcc", "-fexec-charset=gbk", "-Wall", "-D_GNU_SOURCE", "${file}", "-std=c99","-o", "${file_path}/${file_base_name}", "&&", "cmd", "/c", "${file_path}/${file_base_name}"] }, { "name": "RunInCommand", "cmd": ["cmd", "/c", "gcc", "-Wall", "-fexec-charset=gbk", "-D_GNU_SOURCE","${file}", "-std=c99","-o", "${file_path}/${file_base_name}", "&&", "start", "cmd", "/c", "${file_path}/${file_base_name} & echo.&pause"] } ]}