使用submine来写c++

 

 

 

 

 

 

 单击tool->build system -> new build system

 

 

{
"cmd": ["g++", "${file}", "-o","${file_path}/${file_base_name}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:?(.*)$",
"working_dir": "${file_path}",
"selector": "source.c++",
"variants":
[
{
"name": "Run",
"cmd": ["cmd","/C","start","cmd","/c", "${file_path}/${file_base_name}.exe &pause"]
}
]
}

单击确定即可

 

安装minigw 什么我这里就不介绍了亲测可用

 

 

note 命令窗的编码是gbk 所以要设置文件为gbk

 

posted on 2019-10-08 09:49  墨非12138  阅读(213)  评论(0编辑  收藏  举报

导航