"cmd": ["g++", "-ggdb","${file}", "-o", "${file_path}/${file_base_name}"],
"file_regex": "^([^:]):([0-9]+):([0-9]+): ()$",
"working_dir": "${file_path}",
"selector": "sourcec, sourcec++",
"variants":
[
{
"name": "Run",
"cmd": ["cmd", "/c", "g++", "${file}", "-o", "${file_path}/${file_base_name}", "&&", "cmd", "/c", "${file_path}/${file_base_name}"]
},
{
"name": "RunInCommand",
"cmd": ["cmd", "/c", "g++", "${file}", "-o", "${file_path}/${file_base_name}", "&&", "start", "cmd", "/c", "${file_path}/${file_base_name} & pause"]
}
]
}
然后加个自定义的快捷键(如Ctrl F5),让它对应命令"RunInCommand"
以上就是关于如何让sublime text 2运行程序时打开命令行窗口全部的内容,包括:如何让sublime text 2运行程序时打开命令行窗口、、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)