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
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 156 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
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
Название |
---|
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).