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 | jiangly | 3898 |
2 | tourist | 3840 |
3 | orzdevinwang | 3706 |
4 | ksun48 | 3691 |
5 | jqdai0815 | 3682 |
6 | ecnerwala | 3525 |
7 | gamegame | 3477 |
8 | Benq | 3468 |
9 | Ormlis | 3381 |
10 | maroonrk | 3379 |
# | User | Contrib. |
---|---|---|
1 | cry | 168 |
2 | -is-this-fft- | 165 |
3 | Dominater069 | 161 |
4 | Um_nik | 159 |
4 | atcoder_official | 159 |
6 | djm03178 | 157 |
7 | adamant | 153 |
8 | luogu_official | 151 |
9 | awoo | 149 |
10 | TheScrasse | 146 |
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).