first steps with building and running C/Cpp with Sublime Text on Ubuntu. I read here and there and I came up with this following working sublime-build:
{"cmd": ["g++", "$file", "-o", "${file_path}/${file_base_name}"],"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$","working_dir": "${file_path}","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}; exec bash\"'"] } ] }Are there better approaches especially at keeping the terminal open after execution is completed?
Any help would be appreciated.
Thanks,Luca