Sublime-Text 4 C++ Build-System
C++ system Text build Sublime
2023-06-13 09:18:23 时间
{
// Windows
// build only
"shell_cmd": "g++ -std=c++14 -g -Wall \"${file}\" -o \"${file_base_name}.exe\"",
// doesn't matter if I use full path
"working_dir": "${file_path}",
// only Cpp files can use this sublime-build file
"selector": "source.c++",
"variants": [
{
// build and run in Terminus (sublime plugin)
// [Recommanded]
"name": "Run In Terminus",
"target": "terminus_exec",
"cancel": "terminus_cancel_build",
"shell_cmd": "g++ -std=c++14 -g -Wall \"${file}\" -o \"${file_base_name}.exe\" && cmd /c \"${file_base_name}.exe\""
},
{
// build and run in CMD
// you can type something in CMD then your progam can get its inputs
// [Recommanded]
"name": "Run in CMD",
"shell_cmd": "g++ -std=c++14 -g -Wall \"${file}\" -o \"${file_base_name}.exe\" && start cmd /c \"\"${file_base_name}.exe\" & pause \""
},
{
// build and run in sublime
// but you can't input anything to your progam
"name": "Run in Sublime",
"shell_cmd": "g++ -std=c++11 -g -Wall \"${file}\" -o \"${file_base_name}.exe\" && cmd /c \"${file_base_name}.exe\""
}
]
}
相关文章
- 【C++年度盛会,全面开启】2022全球C++及系统软件技术大,豪华嘉宾阵容揭晓
- C++解析XML文件[通俗易懂]
- c++获取子类窗口句柄位置_C++中各种获取窗口句柄的方法「建议收藏」
- C++ Primer Plus习题及答案-第六章
- c++之数据处理笔记(二)
- C++字符串的奇技淫巧
- C++stl库_c++库
- 大数运算c++
- 浅谈 C/C++ 的输入输出
- c++的链表-C++链表
- C/C++ x32 Inline Hook 代码封装
- C/C++ x64 Inline Hook 代码封装
- 【C++】多态
- C++ vector删除元素(数据)详解
- C++为什么要引入STL?
- 改变未来:Oracle修改System密码(oracle修改system密码)
- 解决Oracle忘记System密码的方法(oracle忘记system密码)
- 基于C++cin、cin.get()、cin.getline()、getline()、gets()函数的使用详解
- c++一个二进制串转化为整数的解决方法
- c++巧开平方的实现代码
- C++输入输出注意事项总结