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…


About unhackmee

typical teenager rumbling about everything not worth your time... Mostly about things that would waste precious seconds from your life, stolen- and never to be returned. WARNING: Discontinue use and seek immediate medical attention should rashes or itchiness occur.

Posted on November 11, 2010, in C++. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: