Last active
April 7, 2020 08:33
-
-
Save Xuanwo/0cb4bce76929ed764daf to your computer and use it in GitHub Desktop.
用于在Sublime Text 3基础上构建C/C++IDE,Windows下
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cmd": ["g++", "${file}", "-std=c++11", "-o", "${file_path}/${file_base_name}"], | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${file_path}", | |
"selector": "source.c, source.c++", | |
"shell": true, | |
"encoding":"cp936", | |
"variants": | |
[ | |
{ | |
"name": "Run", | |
// "cmd": [ "start", "${file_path}/${file_base_name}.exe"] | |
"cmd": ["start", "cmd", "/c", "${file_base_name} & echo. & pause"] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git主你好,我使用你的配置时,遇到个问题,当我把cpp文件放在桌面时,可以正常编译运行。
当我把cpp放在文件夹或其中位置时,就会错误
例如:D://b.cpp 在sublime里中ctrl+b编译时,会弹出cmd说‘b不是内部或外部命令,也不是可运行的程序或批处理文件’
请问下应该怎么解决呢?