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.
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.
精彩评论