在菜单栏-tools-build system-New build system
复制下面:
-
{
-
-
"shell_cmd": "gcc \"${file}\" -o \"${file_path}/${file_base_name}\" -lm -Wall",
-
-
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
-
-
"working_dir": "${file_path}",
-
-
"selector": "source.c",
-
-
"variants":
-
[
-
{
-
-
"name": "Run",
-
-
"shell_cmd": "x-terminal-emulator -e bash -c \"\"${file_path}/${file_base_name}\" ; read -p '\n Press any key to continue...'\""
-
}
-
]
-
}
保存即可
阅读(1575) | 评论(0) | 转发(0) |