Over the past year, I scoured Google for an Eclipse plugin that would launch the terminal in a specific folder for me. I was picturing something that added a right-click context menu option for opening any folder in a project in the console so I could do command line stuff on it.

I would do a bunch of searches and find nothing, give up for a few months until I needed the functionality again, do a bunch of searches, give up, and so on…

Finally, one day I found a page hinting at the External Tools toolbar menu option:
(If you don’t see this in your toolbar, right click on it–>customize perspective–>check the box next to External Tools)

Once you find that button, click the down arrow on it and then select the “Open External Tools Dialog…” menu item.

Click “Program” and then click the “New” button.

The configuration I used in Ubuntu with Eclipse 3.3 is pictured below. I’m sure it will work with any recent Eclipse and any OS (Windows, Mac, Unix flavor), just change the name of the process that you are launching.

Location: /usr/bin/gnome-terminal
Working Directory: ${resource_loc}
Arguments: –geometry=118×33+25+10

This is in the babble category tagged as


12 Responses

  1. Luke Says:

    After you do this, how do you open the terminal?

  2. Ben Says:

    Click “Organize Favorites” under that “External Tools” button. Click Add, then choose “Terminal”.

    Now, after selecting a folder, click that “External Tools” button, then choose “Terminal” and you will be in that directory in a terminal.

  3. Drew Says:

    very cool — is there any way to launch it from a context menu?

  4. Ben Says:

    I don’t know of a way to add it without creating a plugin for it. I looked through the Customize Perspectize dialog and didn’t see anything for External Tools in the context menu

  5. Kennet Says:

    I also added nautilus, but in that case the path is set as arguments.

    Location: /usr/bin/nautilus

    Arguments: ${resource_loc}

  6. Kennet Says:

    Finally I found it, http://code.google.com/p/eclipse-openinterminal/

  7. Tim Says:

    Nice. Do you think this could be extended to launch a project within a terminal?

    Is there a way to extract/construct the required cmd-line using this facility?

  8. Ben Says:

    You can run a command in the opened terminal by adding a –command=_____ argument. I’m not sure what you mean by the second question…

  9. Giannis Tsagatakis Says:

    I use this pluginbox.sourceforge.net

  10. EungJun Says:

    Thanks for your useful tip.

    But I fail to configure it with “The specified location is not a directory” error which occurs when I fill Working Directory field with ${resource_loc}.

  11. EungJun Says:

    I have fixed my problem myself using ${container_loc} instead of ${resource_loc}.

    It work well now!

    (And I’m using SpringSource Tool Suite 2.7.1 based on Eclipse 3.7.)

  12. Anders Says:

    I have a peculiar problem!
    If I do not have: -e ./program as argument to the gnome-terminal then the colors works well in e.g. ncurses.

    If I however do use -e ./program , the I do not get colors in ncurses.
    Does anyone have a clue how to fix this?

Leave a Comment

Your comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.