标签:color 需要 start 编译 inpu exit 方便 c++ enc
最近在用sublime,感觉每次都要用命令行编译运行很不方便,于是从同学哪里扒来一个编译系统,
ctrl+B自动编译运行.
添加时只需要工具->编译系统->新编译系统即可.
{ "cmd": ["g++.exe", "${file}", "-o", "${file_base_name}", "-std=c++11", "-m32", "-Wall"], "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "working_dir": "${file_path}", "selector": "source.c, source.c++", "encoding":"UTF-8", "variants": [ { "name": "Compile && Run", "shell": true, "cmd" : ["g++.exe", "${file}", "-o", "${file_path}/${file_base_name}", "-std=c++11", "-m32", "-Wall", "&&" , "start", "cmd", "/k", "${file_path}/${file_base_name} &&echo. & pause && exit"] }, { "name": "Fileinput", "shell": true, "cmd": [ "start", "cmd", "/k", "${file_base_name} < ${file_base_name}.in && echo. & pause && exit" ] }, { "name": "RunScript", "shell": true, "cmd" : ["${file_path}/check.bat &&echo. & pause && exit"] } ] }
感觉挺好用(32位系统下感觉良好)
标签:color 需要 start 编译 inpu exit 方便 c++ enc
原文地址:https://www.cnblogs.com/Yuhuger/p/8810897.html