在 Mac 中从 Eclipse 打开终端或查找程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4222558/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 15:22:09  来源:igfitidea点击:

Open terminal or finder from Eclipse in Mac

eclipsemacoseclipse-plugin

提问by Andrew Eisenberg

After reading this question regarding Linux:

阅读有关 Linux 的这个问题后:

Open Terminal From Eclipse

从 Eclipse 打开终端

I have the same question for Macs. Is there a plugin available that lets me open a finder window or a terminal based on some folder in Eclipse?

我对 Mac 有同样的问题。是否有可用的插件可以让我基于 Eclipse 中的某个文件夹打开查找器窗口或终端?

采纳答案by Jano

StartExploreropens the file explorer or the terminal in Mac/Windows/Linux.
Go to Help > Eclipse Marketplace... and search for StartExplorer.

StartExplorer在 Mac/Windows/Linux 中打开文件资源管理器或终端。
转至帮助 > Eclipse Marketplace... 并搜索 StartExplorer。

Updated jan-2015.

2015 年 1 月更新。

回答by NPike

You can setup an external tool in Eclipse. (It's the green RUN button that has a red toolbox).

您可以在 Eclipse 中设置一个外部工具。(它是带有红色工具箱的绿色运行按钮)。

Location: /usr/bin/open

位置:/usr/bin/open

Arguments: ${container_loc}

参数:${container_loc}

enter image description here

在此处输入图片说明

回答by Renaud

Easy shellthat has most votes to the question you reference works on OS X, too.

对您引用的问题投票最多的Easy shell也适用于 OS X。

enter image description here

在此处输入图片说明

You can installit 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"

您可以通过 Eclipse 市场安装它。如果您没有 Eclipse Marketplace Client(例如,您使用的是 Eclipse Classic),您可以安装它:["Install New Software..."] --> 搜索“Marketplace Client”

回答by VonC

That could be (not tested) the Open External Plug-in 0.7.0 (different from the Google openextern projectmentioned in this other SO answeryou reference in the question)

这可能是(未测试)Open External Plug-in 0.7.0(与您在问题中引用的其他SO答案中提到的Google openextern项目不同)

See how to install it here.

在此处查看如何安装它

alt text

替代文字

回答by Gene Bo

For a terminal to launch from Eclipse

对于从 Eclipse 启动的终端

  • in Eclipse, if you go to Help->Eclipse Marketplace and search for 'terminal', you will see this plugin from Google. It launches a terminal inside in eclipse and to the location of the selected resource - does the trick. I do think you need a later version of Eclipse for it though.
  • 在 Eclipse 中,如果您转到 Help->Eclipse Marketplace 并搜索“终端”,您将看到来自 Google 的这个插件。它在 eclipse 中启动一个终端并到达所选资源的位置 - 做到这一点。不过,我确实认为您需要更高版本的 Eclipse。

Eclipse Marketplace Search for a Mac-friendly Terminal

Eclipse Marketplace 搜索 Mac 友好的终端

回答by HiB

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

有一个名为 Local Terminal 的孵化器项目。您可以从通用工具->本地终端下的 Eclipse 更新站点安装它比http://elt.googlecode.com好得多