Those who use sublime Text 3 for C++ coding in Ubuntu. This build system is for them https://github.com/ddxofy/SublimeTextSnippets/blob/master/G%2B%2B(For%20Ubuntu).sublime-build
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
Those who use sublime Text 3 for C++ coding in Ubuntu. This build system is for them https://github.com/ddxofy/SublimeTextSnippets/blob/master/G%2B%2B(For%20Ubuntu).sublime-build
Name |
---|
The terminal opens, but doesn't wait for user interrupt and closes instantaneously. What to do?
I have worked on that. Couldn't find any good solution though.
I use this Build System in sublime-text-2 and works properly! I think it's OK with ST3!
if that Build System doesn't work, another solution is to create a
.sh
shell script which compiles and runs your code!!PS: just simply add
read -p 'Press any key to continue...'
to the cmd string!Thanks a lot! MrNull
use cmake and don't invent bicycles
Your provided link is invalid now
Sorry, I have rewritten beepaste so the database was recreated :D
btw, the new link is https://beepaste.io/view/SFio5f
{ "cmd": ["g++", "file", " - o", "{file_path}/{filebasename}"], "fileregex": "(..[: ] * ): ([0 - 9] + ): ?([0 - 9] + )?: ?(. * )", "working_dir": "{filepath}", "selector": "source.c, source.c + + , source.cxx, source.cpp", "variants": [{"name": "Run", "shell": true, "cmd": ["gnome - terminal - e'bash - c"{file_path}/${file_base_name};echo;echo; echo Press ENTER to continue; read line;exit; exec bash"'"] } ]
}
Why u do this man? Even downvoting required effort :|
In each folder with source file there was Makefile also, and to run it I used this plugin.
Auto comment: topic has been updated by MKGAURAB (previous revision, new revision, compare).