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 | ecnerwala | 3649 |
2 | Benq | 3581 |
3 | orzdevinwang | 3570 |
4 | Geothermal | 3569 |
4 | cnnfls_csy | 3569 |
6 | tourist | 3565 |
7 | maroonrk | 3531 |
8 | Radewoosh | 3521 |
9 | Um_nik | 3482 |
10 | jiangly | 3468 |
# | User | Contrib. |
---|---|---|
1 | maomao90 | 174 |
2 | awoo | 164 |
3 | adamant | 163 |
4 | TheScrasse | 159 |
5 | nor | 158 |
6 | maroonrk | 156 |
7 | -is-this-fft- | 151 |
8 | SecondThread | 147 |
9 | orz | 146 |
10 | pajenegod | 145 |
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).