c在sublime里能像python一样配置输入输出新建窗口显示么
sublime keybuild里python设置如下
[
{
"keys":["f5"],
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command", "args":
{"id": "repl_python_run","file": "config/Python/Main.sublime-menu"}
},
]
网上查了下在sublime的user文件下下新建了c.sublime-build
内容是
{
"working_dir": "$file_path",
"cmd": "gcc -Wall \"$file_name\" -o \"$file_base_name\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"selector": "source.c",
"variants":
[
{
"name": "Run",
"shell_cmd": "gcc -Wall \"$file\" -o \"$file_base_name\" && start cmd /c \"\"${file_path}/${file_base_name}\" & pause\""
}
]
}
然后运行的时候也不会弹出新的cmd窗口还是在控制台显示 怎么修改能弹出cmd窗口 或者不用弹怎么像python设置一样可以新开一个sublime的窗口然后在里面输入输出?