Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7072

Run a simple C program with Sublime Text 2 in external terminal on Ubuntu

$
0
0

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


Viewing all articles
Browse latest Browse all 7072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>