sublime c++编译配置
来源:互联网 发布:学生宿舍网络设计方案 编辑:程序博客网 时间:2024/06/08 05:19
sublime tools->build system->new build system
可以起名 c++ file,粘贴如下代码
{ "cmd" : ["g++", "${file}", "-o", "${file_path}/${file_base_name}"], "file_regex" : "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "working_dir" : "${file_path}", "selector" : "source.c, source.c++,source.cpp", "variants" : [ { "name" : "Run", "shell_cmd" : "g++ \"${file}\" -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\"" }, { "encoding" : "utf-8", "name" : "Run in cmd to exe", "cmd" : ["start", "cmd", "/c", "g++", "${file}", "-o", "${file_path}/${file_base_name}.exe"], // "cmd":["start","cmd", "/k","${file_path}/${file_base_name}.exe"], "shell" : true }, { "encoding" : "utf-8", "name" : "Run exe", "cmd" : ["start", "cmd", "/k", "${file_path}/${file_base_name}.exe"], // "cmd":["start","cmd", "/k","${file_path}/${file_base_name}.exe"], "shell" : true } ]}
ctrl+shift+B
选择run in cmd to exe 生成exe文件
之后选择run exe,执行exe文件
不太清楚怎么把两个写到一起,只好分开了
0 0
- sublime配置编译C/C++
- sublime text 2配置编译C语言
- 配置Sublime Text编译C程序
- sublime text 2配置编译C语言
- Sublime Text 3 配置 c/c++、Java编译运行环境
- sublime c++编译配置
- Sublime 2 在Ubuntu12.10 下配置C编译环境
- Sublime Text 3配置Windows下C/C++编译环境
- Ubuntu配置sublime text 3的c编译环境
- sublime text 3 配置GCC G++编译C C++文件
- sublime text 3配置c/c++编译环境
- sublime text 3配置c/c++编译环境
- sublime text 3配置c/c++编译环境
- sublime text 3配置c/c++编译环境
- sublime text 3配置c/c++编译环境
- sublime text 3配置c/c++编译环境
- Sublime Text3 C/C++编译环境的配置
- Ubuntu16.04 配置sublime text 3的c编译环境
- sql拼接列或sql拼接字符(数字)
- 见证成长的地方,大家好!3到5年自己能成为框架师吗?
- Spark:超越Hadoop MapReduce
- Socket和ServerSocket学习笔记
- Linux常用命令(22)之网络配置
- sublime c++编译配置
- 数据库基础学习
- 堆内内存与对外内存区别
- numpy库用法总结
- 自动装箱与自动拆箱
- 2015年Java开发岗位面试题归类
- 对象锁和类锁
- 学习笔记- 自己写的关于生产者与消费者模式,还有定时任务的demo。
- hdu 1757(快速矩阵幂)