开发者

Open Terminal From Eclipse [closed]

开发者 https://www.devze.com 2023-01-25 18:54 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 9 years ago.

Is there a plugin to provide an "open terminal here" option when right-clicking on a folder in Eclipse? I found this, but it only seems to work on Windows, and I'm usin开发者_StackOverflow社区g Ubuntu.


Easy shell definitely is the one you're looking for.

Open Terminal From Eclipse [closed]

You can install it via Eclipse marketplace. If you don't have Eclipse Marketplace Client (e.g., you are using Eclipse Classic), you can install it: ["Install New Software..."] --> search for "Marketplace Client"


Yes, here it is: http://code.google.com/p/openextern/

This is an eclipse plugin, which you can use to open a shell (either a command prompt - CMD or a linux shell), or a folder (windows explorer, nautilus, konqueror) from eclipse's resource navigator or package explorer.


To get an integrated terminal, try http://elt.googlecode.com


There is an Incubator project called Local Terminal. You can install it from the Eclipse update site under General Purpose Tools->Local Terminal
Much better then http://elt.googlecode.com


Sorry, I don't know any plugin which integrates that, except for this one. You might be forced to modify tarlog.

I've had a look at the code of tarlog. You could have a look at the OpenCommandPrompt class (can be found in the tarlog package: tarlog.eclipse.plugins_1.4.2\src\tarlog\eclipse\plugins\openwe)

   @Override
    protected void doAction(String path) {
        try {
            File file = new File(path);
            if (file.isFile()) {
                File parentFile = file.getParentFile();
                if (parentFile != null) {
                    path = parentFile.getAbsolutePath();
                }
            }
            if (command.indexOf("{0}") >= 0) {
                Runtime.getRuntime().exec(MessageFormat.format(command, path));
            } else {
                Runtime.getRuntime().exec(command, null, new File(path));
            }
        }
        catch (IOException e) {
            e.printStackTrace();
        }
    }

From what the code looks like it should work perfectly fine, as long as you specify the right executable in the preferences...


Aptana 3 (base on Eclipse) has built-in terminal.
It is convenient.

0

精彩评论

暂无评论...
验证码 换一张
取 消