Category Archives: C++

Gedit- “Compile and Run C++” tool

If you  are new to programming (like me) and  are satisfied with gedit and g++… to write CLI programs in C++ for the time being… then im sure that you would be pretty annoyed with the stupid steps to compile and run it everytime using a seperate terminal window. Yep, annoying.

Cutting to the chase, there is an External Tools Plugin (link) for gedit.. and it supports shell scripting.. so i made a new “tool” in it.. the script will compile with g++ and then open up terminal – after that it proceeds to launch the newly compiled file:


gnome-terminal –working-directory=$GEDIT_CURRENT_DOCUMENT_DIR -e “./${GEDIT_CURRENT_DOCUMENT_NAME%.*}” &

credit 1>

UPDATE>> you might want to take a look at this: link .. I prefer to add a cin line to my code though…